Skip to content

Commit

Permalink
fix(Web): clear color buffer when destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
hujinliang committed Jul 5, 2022
1 parent 114905a commit ee92c4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/src/webgl-render-vap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ export default class WebglRenderVap extends VapVideo {
if (canvas) {
canvas.parentNode && canvas.parentNode.removeChild(canvas);
}
gl.clear(gl.COLOR_BUFFER_BIT);
// glUtil.cleanWebGL(gl, this.shaders, this.program, this.textures, this.buffers)
super.destroy();
this.clearMemoryCache();
Expand Down

0 comments on commit ee92c4a

Please sign in to comment.