win32: Adapt to default flag changes

I hope this change does the right thing.
This commit is contained in:
Matthias Clasen 2024-08-19 21:04:53 -04:00
parent fd02c885e9
commit 39e6301f42

View File

@ -1202,7 +1202,7 @@ gdk_win32_display_init_gl (GdkDisplay *display,
* Disable defaulting to EGL as EGL is used more as a compatibility layer
* on Windows rather than being a native citizen on Windows
*/
if (gdk_display_get_debug_flags (display) & (GDK_DEBUG_GL_EGL|GDK_DEBUG_GL_DISABLE_GL))
if (!gdk_has_feature (GDK_FEATURE_WGL) || !gdk_has_feature (GDK_FEATURE_GL_API))
{
init_gl_hdc = GetDC (display_win32->hwnd);