fix bug in deallocate tex

This commit is contained in:
h4570
2022-07-28 11:51:16 +02:00
parent 59077bcfe9
commit 960f4dd0c4
2 changed files with 5 additions and 2 deletions
@@ -52,9 +52,12 @@ void RendererCoreTextureSender::deallocate(
}
graph_vram_free(texBuffers.core->address);
float deallocateSize = getSizeInMB(texBuffers.core);
delete texBuffers.core;
allocatedVRamMemForTextures -= getSizeInMB(texBuffers.core);
allocatedVRamMemForTextures -= deallocateSize;
}
texbuffer_t* RendererCoreTextureSender::allocateTextureCore(