Skip to content

Commit 0a8f707

Browse files
authored
Merge pull request McNopper#8 from nicebyte/hdcdisplay
Fix _eglGetDisplay compilation on MSVC
2 parents 551245f + 9b28ef6 commit 0a8f707

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

EGL/src/egl_common.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,7 +1692,11 @@ EGLDisplay _eglGetDisplay(EGLNativeDisplayType display_id)
16921692

16931693
newDpy->initialized = EGL_FALSE;
16941694
newDpy->destroy = EGL_FALSE;
1695+
#if defined(_WIN32) || defined(_WIN64)
1696+
newDpy->display_id = display_id ? display_id : g_localStorage.dummy.hdc;
1697+
#else
16951698
newDpy->display_id = display_id ? display_id : g_localStorage.dummy.display;
1699+
#endif
16961700
newDpy->rootSurface = 0;
16971701
newDpy->rootCtx = 0;
16981702
newDpy->rootConfig = 0;

0 commit comments

Comments
 (0)