From 670838a19a572d911a2cfb820211a8a354dde7c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 20 Aug 2023 14:47:24 +0200 Subject: [PATCH] Platform: directly use HWND in WindowlessEglApplication on Windows. Sorry for not having an appropriate CI environment (such as ANGLE) to test this class in. --- src/Magnum/Platform/WindowlessEglApplication.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Magnum/Platform/WindowlessEglApplication.h b/src/Magnum/Platform/WindowlessEglApplication.h index fc10449bb..6b747c3d5 100644 --- a/src/Magnum/Platform/WindowlessEglApplication.h +++ b/src/Magnum/Platform/WindowlessEglApplication.h @@ -163,9 +163,10 @@ class WindowlessEglContext { bool _sharedContext = false; #endif #ifdef CORRADE_TARGET_WINDOWS - /* It's a HWND, which is HANDLE, which is PVOID, which is void*. FFS - Windows you're really mad with the typedefs. */ - void* _window{}; + /* This used to be a void* "to not have to include ", but + since EGL/eglplatform.h already does that, there's no reason not to + use it. void* was also apparently incorrect. */ + HWND _window{}; #endif EGLDisplay _display{}; EGLContext _context{};