From e45220cdf25e0176dabba34651e425f92019412f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 24 May 2003 02:09:17 +0000 Subject: [PATCH] don't need to reload textures on mode change anymore --- stepmania/src/RageDisplay_D3D.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/stepmania/src/RageDisplay_D3D.cpp b/stepmania/src/RageDisplay_D3D.cpp index 0475624f25..c09cbd3e5d 100644 --- a/stepmania/src/RageDisplay_D3D.cpp +++ b/stepmania/src/RageDisplay_D3D.cpp @@ -394,9 +394,16 @@ bool RageDisplay::SetVideoMode( bool windowed, int width, int height, int bpp, i g_pd3dDevice->BeginScene(); - return true; + /* Palettes were lost by Reset(), so mark them unloaded. */ + g_TexResourceToPaletteIndex.clear(); + + return false; + // return true; + // Always reload textures. None of our textures // are managed and all texture palettes are lost on Reset(). + /* Err, all of our textures are managed. With the palette loading, we don't + * appear to have to reload textures anymore. */ } void RageDisplay::ResolutionChanged()