mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 22:33:17 +00:00
- fixed: Texture precaching for sprites had some inverted logic and deleted everything that was still required.
This commit is contained in:
parent
0cc57c6141
commit
15933f9c72
1 changed files with 2 additions and 2 deletions
|
@ -315,13 +315,13 @@ void FHardwareTexture::Clean(bool all)
|
|||
|
||||
void FHardwareTexture::CleanUnused(SpriteHits &usedtranslations)
|
||||
{
|
||||
if (usedtranslations.CheckKey(0) != nullptr)
|
||||
if (usedtranslations.CheckKey(0) == nullptr)
|
||||
{
|
||||
glDefTex.Delete();
|
||||
}
|
||||
for (int i = glTex_Translated.Size()-1; i>= 0; i--)
|
||||
{
|
||||
if (usedtranslations.CheckKey(glTex_Translated[i].translation) != nullptr)
|
||||
if (usedtranslations.CheckKey(glTex_Translated[i].translation) == nullptr)
|
||||
{
|
||||
glTex_Translated[i].Delete();
|
||||
glTex_Translated.Delete(i);
|
||||
|
|
Loading…
Reference in a new issue