fix bug in deallocate tex
This commit is contained in:
1 parent
59077bcfe9
commit
960f4dd0c4
2 files changed
+5
-2
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user