fix compile error

This commit is contained in:
HALX99 2020-06-12 12:36:52 +08:00 committed by GitHub
parent aeba2881c0
commit bcdb1ea8ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -396,9 +396,7 @@ GLFWbool _glfwInitEGL(void)
} }
#if defined(_WIN32) #if defined(_WIN32)
_GLFWwindow* mainWindow = _glfw.windowListHead; _glfw.egl.display = eglGetDisplay(GetDC(_glfw.windowListHead->win32.handle));
HDC dc = GetDC(mainWindow->win32.handle);
_glfw.egl.display = eglGetDisplay(dc);
#else #else
_glfw.egl.display = eglGetDisplay(_GLFW_EGL_NATIVE_DISPLAY); _glfw.egl.display = eglGetDisplay(_GLFW_EGL_NATIVE_DISPLAY);
#endif #endif