[gtk+/wip/ebassi/legacy-gl: 5/5] x11: Control legacy GL context via environment variable
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/ebassi/legacy-gl: 5/5] x11: Control legacy GL context via environment variable
- Date: Tue, 6 Oct 2015 18:59:56 +0000 (UTC)
commit 7f2b9742cbb527c87e7dc99a6aefe9125dd70f7b
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Oct 6 19:57:45 2015 +0100
x11: Control legacy GL context via environment variable
For testing purposes, we may want to force the creation of legacy GLX
contexts via an environment variable.
gdk/x11/gdkglcontext-x11.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkglcontext-x11.c b/gdk/x11/gdkglcontext-x11.c
index d55944e..faac9c1 100644
--- a/gdk/x11/gdkglcontext-x11.c
+++ b/gdk/x11/gdkglcontext-x11.c
@@ -637,7 +637,8 @@ gdk_x11_gl_context_realize (GdkGLContext *context,
compat_bit = gdk_gl_context_get_forward_compatible (context);
/* If there is no glXCreateContextAttribsARB() then we default to legacy */
- legacy_bit = !GDK_X11_DISPLAY (display)->has_glx_create_context;
+ legacy_bit = !GDK_X11_DISPLAY (display)->has_glx_create_context ||
+ g_getenv ("GDK_GL_USE_LEGACY") != NULL;
/* We cannot share legacy contexts with core profile ones, so the
* shared context is the one that decides if we're going to create
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]