Stop leaking more
This commit is contained in:
parent
5a1c4f57c6
commit
02453c2a97
1 changed files with 2 additions and 4 deletions
|
|
@ -26,10 +26,8 @@ export class IntermediateFrameBuffer extends FrameBuffer {
|
||||||
}
|
}
|
||||||
|
|
||||||
public destroy(): void {
|
public destroy(): void {
|
||||||
if (this.distanceTexture) {
|
this.distanceTexture?.destroy();
|
||||||
this.gl.deleteTexture(this.distanceTexture);
|
this.colorTexture.destroy();
|
||||||
}
|
|
||||||
this.gl.deleteTexture(this.colorTexture);
|
|
||||||
this.gl.deleteFramebuffer(this.frameBuffer);
|
this.gl.deleteFramebuffer(this.frameBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue