summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkdisplay-x11.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2021-06-09 13:42:19 +0200
committerBenjamin Otte <otte@redhat.com>2021-07-22 16:06:05 +0200
commitc787fe7ecb87329aabbce504f1e7f6ee8e2a67ef (patch)
treee4790f2d4d73e13c340fcc03f143d8ee0e6da147 /gdk/x11/gdkdisplay-x11.h
parentbdb49720be78ed271141f848271b51e5f73e29d1 (diff)
downloadgtk+-c787fe7ecb87329aabbce504f1e7f6ee8e2a67ef.tar.gz
x11: Store the EGL config in the display
We only have one config, because we use the same Visual everywhere. Store this config in the GdkDisplayX11 struct for easy access. Also do this on initialize, because if creating the config fails, we want to switch to GLX instead of failing to do GL at all. This also simplifies a lot of code as we can share Visual, Colormap, etc across surfaces.
Diffstat (limited to 'gdk/x11/gdkdisplay-x11.h')
-rw-r--r--gdk/x11/gdkdisplay-x11.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/x11/gdkdisplay-x11.h b/gdk/x11/gdkdisplay-x11.h
index bf0b09569a..b8bfb84088 100644
--- a/gdk/x11/gdkdisplay-x11.h
+++ b/gdk/x11/gdkdisplay-x11.h
@@ -137,6 +137,7 @@ struct _GdkX11Display
/* EGL information */
/* We use gpointer here so we don't have to pull in EGL headers (which glx doesn't like) */
/* EGLDisplay */ gpointer egl_display;
+ /* EGLConfig */ gpointer egl_config;
int egl_version;
/* Translation between X server time and system-local monotonic time */