fix up bit depth stuff

This commit is contained in:
Glenn Maynard
2002-12-30 03:35:58 +00:00
parent 517bdcf150
commit b97d3f8513
4 changed files with 34 additions and 23 deletions
+15 -1
View File
@@ -191,7 +191,21 @@ void RageTextureManager::ReloadAll()
{
RageTexture* pTexture = i->second;
pTexture->Reload( i->first );
/* A note on how this really works:
*
* The ID identifies a texture, and all of the parameters needed
* to produce it. When we load a texture, iColorDepth is pulled
* from GetTextureColorDepth(). Now we're reloading it, probably
* due to a change in display settings, so we need to update that
* to the current setting and reload it. This will also change
* the data in our map (which is OK; it's not part of the ordering)
* to reflect this. */
/* Update the settings that are based on preferences. */
RageTextureID ID = i->first;
ID.iColorDepth = TEXTUREMAN->GetTextureColorDepth();
pTexture->Reload( ID );
}
}