Skip to content

Commit 0df55f8

Browse files
Also update VRAM usage when calling freeTextureSource()
1 parent 3b53a24 commit 0df55f8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/tree/TextureManager.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ export default class TextureManager {
190190
if (textureSource.isLoaded()) {
191191
if (managed) {
192192
this._addMemoryUsage(-textureSource.w * textureSource.h);
193+
this._updateVramUsage(textureSource, -1);
193194
this._uploadedTextureSources.splice(index, 1);
194195
}
195196
this._nativeFreeTextureSource(textureSource);

0 commit comments

Comments
 (0)