Browse Source

Platform: directly use HWND in WindowlessEglApplication on Windows.

Sorry for not having an appropriate CI environment (such as ANGLE) to
test this class in.
pull/168/head
Vladimír Vondruš 3 years ago
parent
commit
670838a19a
  1. 7
      src/Magnum/Platform/WindowlessEglApplication.h

7
src/Magnum/Platform/WindowlessEglApplication.h

@ -163,9 +163,10 @@ class WindowlessEglContext {
bool _sharedContext = false; bool _sharedContext = false;
#endif #endif
#ifdef CORRADE_TARGET_WINDOWS #ifdef CORRADE_TARGET_WINDOWS
/* It's a HWND, which is HANDLE, which is PVOID, which is void*. FFS /* This used to be a void* "to not have to include <windows.h>", but
Windows you're really mad with the typedefs. */ since EGL/eglplatform.h already does that, there's no reason not to
void* _window{}; use it. void* was also apparently incorrect. */
HWND _window{};
#endif #endif
EGLDisplay _display{}; EGLDisplay _display{};
EGLContext _context{}; EGLContext _context{};

Loading…
Cancel
Save