mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +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)
|
void FHardwareTexture::CleanUnused(SpriteHits &usedtranslations)
|
||||||
{
|
{
|
||||||
if (usedtranslations.CheckKey(0) != nullptr)
|
if (usedtranslations.CheckKey(0) == nullptr)
|
||||||
{
|
{
|
||||||
glDefTex.Delete();
|
glDefTex.Delete();
|
||||||
}
|
}
|
||||||
for (int i = glTex_Translated.Size()-1; i>= 0; i--)
|
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[i].Delete();
|
||||||
glTex_Translated.Delete(i);
|
glTex_Translated.Delete(i);
|
||||||
|
|
Loading…
Reference in a new issue