fixed screenshot causing crash in some resolutions

This commit is contained in:
Chris Danford
2003-02-02 02:01:28 +00:00
parent 1c4c24eeea
commit 3f537d1586
2 changed files with 6 additions and 4 deletions
+5 -3
View File
@@ -94,10 +94,12 @@ void ApplyGraphicOptions()
PREFSMAN->m_iRefreshRate,
PREFSMAN->m_bVsync );
if(TEXTUREMAN->SetPrefs( PREFSMAN->m_iTextureColorDepth, PREFSMAN->m_iUnloadTextureDelaySeconds, PREFSMAN->m_iMaxTextureResolution ))
ReloadTextures = true;
bool bTexturesInvalidated = TEXTUREMAN->SetPrefs(
PREFSMAN->m_iTextureColorDepth,
PREFSMAN->m_iUnloadTextureDelaySeconds,
PREFSMAN->m_iMaxTextureResolution );
if(ReloadTextures)
if( bTexturesInvalidated )
TEXTUREMAN->ReloadAll();
}