We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 551245f + 9b28ef6 commit 0a8f707Copy full SHA for 0a8f707
1 file changed
EGL/src/egl_common.c
@@ -1692,7 +1692,11 @@ EGLDisplay _eglGetDisplay(EGLNativeDisplayType display_id)
1692
1693
newDpy->initialized = EGL_FALSE;
1694
newDpy->destroy = EGL_FALSE;
1695
+#if defined(_WIN32) || defined(_WIN64)
1696
+ newDpy->display_id = display_id ? display_id : g_localStorage.dummy.hdc;
1697
+#else
1698
newDpy->display_id = display_id ? display_id : g_localStorage.dummy.display;
1699
+#endif
1700
newDpy->rootSurface = 0;
1701
newDpy->rootCtx = 0;
1702
newDpy->rootConfig = 0;
0 commit comments