summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Bacci <luca.bacci982@gmail.com>2023-03-13 17:51:03 +0000
committerLuca Bacci <luca.bacci982@gmail.com>2023-03-13 17:51:03 +0000
commit7776052c46f53478a97a67d76f7dc3dde134731d (patch)
tree2c6d3f32fbc9bf91a40521eeb6381e53cf1cdea3
parent8a5619d98118fcdab92db5697c1e659f1ded80f6 (diff)
parentcf3e037e642b43562db6486ab238ae0dd33f8237 (diff)
downloadgtk+-7776052c46f53478a97a67d76f7dc3dde134731d.tar.gz
Merge branch 'check-egl-support-at-runtime' into 'gtk-3-24'
GdkWin32GLContext: Check availability of EGL at runtime See merge request GNOME/gtk!5629
-rw-r--r--gdk/win32/gdkglcontext-win32.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdk/win32/gdkglcontext-win32.c b/gdk/win32/gdkglcontext-win32.c
index 233468731a..d303df2a63 100644
--- a/gdk/win32/gdkglcontext-win32.c
+++ b/gdk/win32/gdkglcontext-win32.c
@@ -1043,6 +1043,12 @@ gdk_win32_display_init_egl (GdkWin32Display *display_win32)
if (display_win32->gl_type == GDK_WIN32_GL_NONE)
GDK_NOTE (OPENGL, g_message ("Falling back to GLES..."));
+ if (!epoxy_has_egl ())
+ {
+ GDK_NOTE (OPENGL, g_message ("EGL/GLES support not present in this system"));
+ return;
+ }
+
egl_disp = gdk_win32_get_egl_display (display_win32);
if (egl_disp == EGL_NO_DISPLAY ||