summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkdisplay-x11.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2021-10-02 05:21:29 +0200
committerBenjamin Otte <otte@redhat.com>2021-10-05 04:48:15 +0200
commit38461ee204edfbc1da3a27d306a3d4399c79bd92 (patch)
tree8c1c523c5c465fbfa4f5e5f013ddf26b568599dd /gdk/x11/gdkdisplay-x11.c
parent75370a2feef339a2b3e9eb2f0c28c590ccf21bbf (diff)
downloadgtk+-38461ee204edfbc1da3a27d306a3d4399c79bd92.tar.gz
gdk: Make GDK_DEBUG GL backend selection global
We have a global GdkGLBackendType now, just set it. This way, using the variable forces the backend type, and we don't need special code handling the env vars in the backends. It also means setting the env var will now "work" on GDK backends that don't even support that GL backend and simualte another GDK backend having registered that GL backend already. So you can run GDK_DEBUG=gl-wgl gtk4-demo on test what Wayland will do when WGL is in use.
Diffstat (limited to 'gdk/x11/gdkdisplay-x11.c')
-rw-r--r--gdk/x11/gdkdisplay-x11.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c
index 6e5fd276f7..2e4273db8f 100644
--- a/gdk/x11/gdkdisplay-x11.c
+++ b/gdk/x11/gdkdisplay-x11.c
@@ -2893,11 +2893,6 @@ gdk_x11_display_init_gl_backend (GdkX11Display *self,
{
GdkDisplay *display G_GNUC_UNUSED = GDK_DISPLAY (self);
- if (GDK_DISPLAY_DEBUG_CHECK (display, GL_EGL))
- return gdk_x11_display_init_egl (self, TRUE, out_visual, out_depth, error);
- if (GDK_DISPLAY_DEBUG_CHECK (display, GL_GLX))
- return gdk_x11_display_init_glx (self, out_visual, out_depth, error);
-
/* No env vars set, do the regular GL initialization.
*
* We try EGL first, but are very picky about what we accept.