diff Render.cpp @ 1806:8e17ceba3a40

.
author Nomad
date Mon, 07 Oct 2013 13:08:53 +0200
parents 9f93b5700e2d
children 6de366add757
line wrap: on
line diff
--- 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 )