Update PenSkin.js

This commit is contained in:
peabrainiac 2019-02-27 08:48:45 +01:00 committed by GitHub
parent c9f86ef53b
commit 44d2fdeba8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -182,7 +182,8 @@ class PenSkin extends Skin {
const gl = this._renderer.gl;
twgl.bindFramebufferInfo(gl, this._framebuffer);
gl.clearColor(1, 1, 1, 0);
/* Reset framebuffer to transparent black */
gl.clearColor(0, 0, 0, 0);
gl.clear(gl.COLOR_BUFFER_BIT);
const ctx = this._canvas.getContext('2d');