From 2539d037478549a0b76bf7572dab05e1fa1a4c96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Wed, 17 Jun 2020 20:23:07 +0200 Subject: [PATCH] Win32: Use helper window DC as EGL native display Closes #1717. --- src/win32_window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win32_window.c b/src/win32_window.c index 5d385b4f..af2b9c92 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -2193,7 +2193,7 @@ EGLenum _glfwPlatformGetEGLPlatform(void) EGLNativeDisplayType _glfwPlatformGetEGLNativeDisplay(void) { - return EGL_DEFAULT_DISPLAY; + return GetDC(_glfw.win32.helperWindowHandle); } EGLNativeWindowType _glfwPlatformGetEGLNativeWindow(_GLFWwindow* window)