From 28c756b1d792ba1fc4428defd1dd668ebd93bd35 Mon Sep 17 00:00:00 2001 From: Robert Beckebans Date: Thu, 10 Mar 2022 19:42:43 +0100 Subject: [PATCH] Don't resize Framebuffers after device shutdown --- neo/sys/win32/win_wndproc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/sys/win32/win_wndproc.cpp b/neo/sys/win32/win_wndproc.cpp index 9a5cbafa..60f966c1 100644 --- a/neo/sys/win32/win_wndproc.cpp +++ b/neo/sys/win32/win_wndproc.cpp @@ -179,7 +179,7 @@ LONG WINAPI MainWndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ) switch( uMsg ) { case WM_WINDOWPOSCHANGED: - if( renderSystem->IsInitialized() ) + if( renderSystem->IsInitialized() && win32.hDC != NULL ) { RECT rect; if( ::GetClientRect( win32.hWnd, &rect ) )