mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
x11: Don't update GLX visuals with EGL
We're going to get into a messy situation, with both GLX and EGL initialized. If we're already using EGL, skip the whole cache.
This commit is contained in:
parent
c35a6725b9
commit
69856a9aac
@ -1022,6 +1022,9 @@ gdk_x11_screen_update_visuals_for_glx (GdkX11Screen *x11_screen)
|
||||
display_x11 = GDK_X11_DISPLAY (display);
|
||||
dpy = gdk_x11_display_get_xdisplay (display);
|
||||
|
||||
if (display_x11->have_egl)
|
||||
return;
|
||||
|
||||
/* We save the default visuals as a property on the root window to avoid
|
||||
having to initialize GL each time, as it may not be used later. */
|
||||
if (get_cached_gl_visuals (display, &system_visual_id, &rgba_visual_id))
|
||||
|
Loading…
Reference in New Issue
Block a user