fix up bit depth stuff
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user