explicitly destroy block scenes

This commit is contained in:
Mononaut
2025-01-06 19:02:24 +00:00
parent 6553344489
commit 9f5666f410
6 changed files with 28 additions and 4 deletions

View File

@@ -110,4 +110,12 @@ export class FastVertexArray {
getVertexData(): Float32Array {
return this.data;
}
destroy(): void {
this.data = null;
this.sprites = null;
this.freeSlots = null;
this.lastSlot = 0;
this.dirty = false;
}
}