mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 05:31:00 +00:00
- set all texture IDs after finishing the initial texture manager initialization.
As it turned out, not all textures have a valid ID at that point so it needs to be redone.
This commit is contained in:
parent
b7ea483323
commit
f296660266
1 changed files with 7 additions and 0 deletions
|
@ -1184,6 +1184,13 @@ void FTextureManager::Init(void (*progressFunc_)(), void (*checkForHacks)(BuildI
|
|||
glPart = TexMan.CheckForTexture("glstuff/glpart.png", ETextureType::MiscPatch);
|
||||
mirrorTexture = TexMan.CheckForTexture("glstuff/mirror.png", ETextureType::MiscPatch);
|
||||
AddLocalizedVariants();
|
||||
|
||||
// Make sure all ID's are correct by resetting them here to the proper index.
|
||||
for (unsigned int i = 0, count = Textures.Size(); i < count; ++i)
|
||||
{
|
||||
Textures[i].Texture->SetID(i);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
Loading…
Reference in a new issue