use WEBGL_lose_context
This commit is contained in:
parent
66e93dcdd9
commit
8e9c9e9906
|
@ -387,6 +387,9 @@ export class ImageEffector {
|
|||
this.gl.deleteProgram(this.renderTextureProgram);
|
||||
this.gl.deleteProgram(this.renderInvertedTextureProgram);
|
||||
this.gl.deleteTexture(this.originalImageTexture);
|
||||
|
||||
const loseContextExt = this.gl.getExtension('WEBGL_lose_context');
|
||||
if (loseContextExt) loseContextExt.loseContext();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue