Don't resize Framebuffers after device shutdown

This commit is contained in:
Robert Beckebans 2022-03-10 19:42:43 +01:00
parent 9cb65c4fcf
commit 28c756b1d7

View file

@ -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 ) )