Mercurial > mm7
comparison mm7_2.cpp @ 2153:d28d3c006077
Some Render decoupling.
author | Nomad |
---|---|
date | Thu, 09 Jan 2014 02:34:20 +0200 |
parents | d44b7775fc06 |
children | 9bd7522cdbbb |
comparison
equal
deleted
inserted
replaced
2152:d44b7775fc06 | 2153:d28d3c006077 |
---|---|
1 #ifdef _MSC_VER | |
2 #define _CRT_SECURE_NO_WARNINGS | |
3 #endif | |
4 | |
5 #include <io.h> | 1 #include <io.h> |
6 #include <direct.h> | 2 #include <direct.h> |
7 | 3 |
8 #include "OSAPI.h" | 4 #include "OSAPI.h" |
9 | 5 |
790 sprintf(pTmpBuf.data(), pGlobalTXT_LocalizationStrings[94], v23); | 786 sprintf(pTmpBuf.data(), pGlobalTXT_LocalizationStrings[94], v23); |
791 pWindow.DrawTitleText(pFont, 1, pWindow.uFrameHeight, 1u, pTmpBuf.data(), 3); | 787 pWindow.DrawTitleText(pFont, 1, pWindow.uFrameHeight, 1u, pTmpBuf.data(), 3); |
792 dword_6BE364_game_settings_1 |= GAME_SETTINGS_4000; | 788 dword_6BE364_game_settings_1 |= GAME_SETTINGS_4000; |
793 pRenderer->EndScene(); | 789 pRenderer->EndScene(); |
794 pRenderer->Present(); | 790 pRenderer->Present(); |
795 if ( pRenderer->pRenderD3D ) | 791 //if ( pRenderer->pRenderD3D ) |
796 pRenderer->pBeforePresentFunction(); | 792 pRenderer->pBeforePresentFunction(); |
797 pRenderer->SaveWinnersCertificate("MM7_Win.Pcx"); | 793 pRenderer->SaveWinnersCertificate("MM7_Win.Pcx"); |
798 free(pFont); | 794 free(pFont); |
799 window_SpeakInHouse->Release(); | 795 window_SpeakInHouse->Release(); |
800 window_SpeakInHouse = 0; | 796 window_SpeakInHouse = 0; |
3053 | 3049 |
3054 pPaletteManager->ResetNonLocked(); | 3050 pPaletteManager->ResetNonLocked(); |
3055 pBitmaps_LOD->ReleaseAll2(); | 3051 pBitmaps_LOD->ReleaseAll2(); |
3056 pSprites_LOD->DeleteSomeOtherSprites(); | 3052 pSprites_LOD->DeleteSomeOtherSprites(); |
3057 pIcons_LOD->ReleaseAll2(); | 3053 pIcons_LOD->ReleaseAll2(); |
3058 if (pRenderer->pRenderD3D) | |
3059 { | |
3060 pRenderer->field_1036B8 = 0; | |
3061 pRenderer->_gpu_memory_used = 0; | |
3062 } | |
3063 | 3054 |
3064 if (uCurrentlyLoadedLevelType == LEVEL_Indoor) | 3055 if (uCurrentlyLoadedLevelType == LEVEL_Indoor) |
3065 pIndoor->Release(); | 3056 pIndoor->Release(); |
3066 else if (uCurrentlyLoadedLevelType == LEVEL_Outdoor) | 3057 else if (uCurrentlyLoadedLevelType == LEVEL_Outdoor) |
3067 pOutdoor->Release(); | 3058 pOutdoor->Release(); |