Fix issue with Windows JAWT swapchains (#1021)

This commit is contained in:
Ben Doherty
2019-03-25 14:41:46 -07:00
committed by GitHub
parent 25eef9dddb
commit 8b7c2159d3
6 changed files with 19 additions and 43 deletions

View File

@@ -24,6 +24,6 @@ void* getNativeWindow(SDL_Window* sdlWindow) {
SDL_SysWMinfo wmi;
SDL_VERSION(&wmi.version);
ASSERT_POSTCONDITION(SDL_GetWindowWMInfo(sdlWindow, &wmi), "SDL version unsupported!");
HDC win = (HDC) wmi.info.win.hdc;
HWND win = (HWND) wmi.info.win.window;
return (void*) win;
}