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 {
|
||||
if (this.distanceTexture) {
|
||||
this.gl.deleteTexture(this.distanceTexture);
|
||||
}
|
||||
this.gl.deleteTexture(this.colorTexture);
|
||||
this.distanceTexture?.destroy();
|
||||
this.colorTexture.destroy();
|
||||
this.gl.deleteFramebuffer(this.frameBuffer);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue