diff mm7_2.cpp @ 2153:d28d3c006077

Some Render decoupling.
author Nomad
date Thu, 09 Jan 2014 02:34:20 +0200
parents d44b7775fc06
children 9bd7522cdbbb
line wrap: on
line diff
--- a/mm7_2.cpp	Thu Jan 09 01:37:34 2014 +0200
+++ b/mm7_2.cpp	Thu Jan 09 02:34:20 2014 +0200
@@ -1,7 +1,3 @@
-#ifdef _MSC_VER
-#define _CRT_SECURE_NO_WARNINGS
-#endif
-
 #include <io.h>
 #include <direct.h>
 
@@ -792,7 +788,7 @@
   dword_6BE364_game_settings_1 |= GAME_SETTINGS_4000;
   pRenderer->EndScene();
   pRenderer->Present();
-  if ( pRenderer->pRenderD3D )
+  //if ( pRenderer->pRenderD3D )
     pRenderer->pBeforePresentFunction();
   pRenderer->SaveWinnersCertificate("MM7_Win.Pcx");
   free(pFont);
@@ -3055,11 +3051,6 @@
   pBitmaps_LOD->ReleaseAll2();
   pSprites_LOD->DeleteSomeOtherSprites();
   pIcons_LOD->ReleaseAll2();
-  if (pRenderer->pRenderD3D)
-  {
-    pRenderer->field_1036B8 = 0;
-    pRenderer->_gpu_memory_used = 0;
-  }
 
   if (uCurrentlyLoadedLevelType == LEVEL_Indoor)
     pIndoor->Release();