From 8924d614c0ab5f8e2f205b0f43eeafceea1df2ab Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 10 May 2021 18:11:05 +0100 Subject: 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. --- gdk/x11/gdkvisual-x11.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gdk/x11/gdkvisual-x11.c') 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 #include @@ -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) { -- cgit v1.2.1