added UnloadTexture pref

This commit is contained in:
Chris Danford
2002-09-18 20:42:33 +00:00
parent f6572498a2
commit 3ff582f533
8 changed files with 59 additions and 282 deletions
+3 -8
View File
@@ -940,19 +940,14 @@ void ApplyGraphicOptions()
int iDisplayBPP = 16;
int &iTextureSize = PREFSMAN->m_iTextureResolution;
switch( iTextureSize )
{
case 1024: break;
case 512: break;
case 256: break;
default: throw RageException( "Invalid TextureResolution '%d'", iTextureSize );
}
/* XXX: ScreenGraphicOptions assumes this is always 16bpp. If this is
* ever changed, keep track of it, since the available refresh rates
* is dependent on the bit depth. */
int iTextureBPP = 16;
bool bUnloadTextures = PREFSMAN->m_bUnloadTextures;
int &iRefreshRate = PREFSMAN->m_iRefreshRate;
CString sMessage = ssprintf( "%s - %dx%d, %dx%d textures%s",
@@ -1005,7 +1000,7 @@ success:
// Let the texture manager know about our preferences
//
if( TEXTUREMAN != NULL )
TEXTUREMAN->SetPrefs( iTextureSize, iTextureBPP );
TEXTUREMAN->SetPrefs( iTextureSize, iTextureBPP, bUnloadTextures );
RestoreObjects();