use WEBGL_lose_context

This commit is contained in:
syuilo 2025-06-01 09:53:13 +09:00
parent 66e93dcdd9
commit 8e9c9e9906
1 changed files with 3 additions and 0 deletions

View File

@ -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();
}
}