Skip to content

Commit ee92c4a

Browse files
author
hujinliang
committed
fix(Web): clear color buffer when destroy
1 parent 114905a commit ee92c4a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

web/src/webgl-render-vap.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ export default class WebglRenderVap extends VapVideo {
336336
if (canvas) {
337337
canvas.parentNode && canvas.parentNode.removeChild(canvas);
338338
}
339+
gl.clear(gl.COLOR_BUFFER_BIT);
339340
// glUtil.cleanWebGL(gl, this.shaders, this.program, this.textures, this.buffers)
340341
super.destroy();
341342
this.clearMemoryCache();

0 commit comments

Comments
 (0)