summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkvisual-x11.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-05-10 18:11:05 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2021-05-10 20:44:35 +0100
commit8924d614c0ab5f8e2f205b0f43eeafceea1df2ab (patch)
tree4b573df6cd6c102b3125337fad037fc1e6c5a810 /gdk/x11/gdkvisual-x11.c
parent03f76eccf5c5bc8132b4c7bddb9a087fcbbfd626 (diff)
downloadgtk+-8924d614c0ab5f8e2f205b0f43eeafceea1df2ab.tar.gz
x11: Use EGL for GL support
This makes the X11 backend similar to the Wayland one, when it comes to OpenGL. Fall back to GLX only if EGL support is not available.
Diffstat (limited to 'gdk/x11/gdkvisual-x11.c')
-rw-r--r--gdk/x11/gdkvisual-x11.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdk/x11/gdkvisual-x11.c b/gdk/x11/gdkvisual-x11.c
index 8e2f296e8b..36d95bff2e 100644
--- a/gdk/x11/gdkvisual-x11.c
+++ b/gdk/x11/gdkvisual-x11.c
@@ -27,6 +27,7 @@
#include "gdkprivate-x11.h"
#include "gdkscreen-x11.h"
#include "gdkvisual-x11.h"
+#include "gdkglcontext-x11.h"
#include <X11/Xlib.h>
#include <X11/Xutil.h>
@@ -249,9 +250,10 @@ _gdk_x11_screen_init_visuals (GdkX11Screen *x11_screen,
x11_screen->nvisuals = nvisuals;
/* If GL is available we want to pick better default/rgba visuals,
- as we care about glx details such as alpha/depth/stencil depth,
- stereo and double buffering */
- _gdk_x11_screen_update_visuals_for_gl (x11_screen);
+ * as we care about GLX details such as alpha/depth/stencil depth,
+ * stereo and double buffering
+ */
+ gdk_x11_screen_update_visuals_for_glx (x11_screen);
if (setup_display)
{