GdkWin32GLContext: check for EGL support at runtime

This commit is contained in:
Luca Bacci
2023-03-10 11:17:28 +01:00
parent 20964a3fa6
commit cf3e037e64

View File

@ -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 ||