Win32: Use helper window DC as EGL native display

Closes #1717.
This commit is contained in:
Camilla Löwy 2020-06-17 20:23:07 +02:00
parent bcb8558189
commit 2539d03747

View File

@ -2193,7 +2193,7 @@ EGLenum _glfwPlatformGetEGLPlatform(void)
EGLNativeDisplayType _glfwPlatformGetEGLNativeDisplay(void) EGLNativeDisplayType _glfwPlatformGetEGLNativeDisplay(void)
{ {
return EGL_DEFAULT_DISPLAY; return GetDC(_glfw.win32.helperWindowHandle);
} }
EGLNativeWindowType _glfwPlatformGetEGLNativeWindow(_GLFWwindow* window) EGLNativeWindowType _glfwPlatformGetEGLNativeWindow(_GLFWwindow* window)