# HG changeset patch # User Nomad # Date 1381144133 -7200 # Node ID 8e17ceba3a409b74c4737378e270fad34f416158 # Parent 830f196a69eaf67932c6588e1223a6a39c791f0f . diff -r 830f196a69ea -r 8e17ceba3a40 OSWindow.cpp --- a/OSWindow.cpp Mon Oct 07 13:00:53 2013 +0200 +++ b/OSWindow.cpp Mon Oct 07 13:08:53 2013 +0200 @@ -346,7 +346,7 @@ if ( !GetUpdateRect(api_handle, 0, 0) || !dword_4E98BC_bApplicationActive && !pRenderer->bWindowMode ) return *result = 0, true; } - if (!api_handle) + if (!api_handle || !pRenderer) return false; PAINTSTRUCT Paint; BeginPaint(api_handle, &Paint); diff -r 830f196a69ea -r 8e17ceba3a40 Render.cpp --- a/Render.cpp Mon Oct 07 13:00:53 2013 +0200 +++ b/Render.cpp Mon Oct 07 13:08:53 2013 +0200 @@ -177,11 +177,13 @@ } //----- (004A16A5) -------------------------------------------------------- -bool AreRenderSurfacesOk() +bool AreRenderSurfacesOk() { char v0; // zf@4 bool result; // eax@8 + if (!pRenderer) + return true; if ( pVersion->pVersionInfo.dwPlatformId != VER_PLATFORM_WIN32_NT || pVersion->pVersionInfo.dwMajorVersion != 4 ) { if ( !pRenderer->pBackBuffer4 )