Update PenSkin.js

changed clearColor on `_setCanvasSize`
This commit is contained in:
peabrainiac 2019-03-02 00:29:21 +01:00 committed by GitHub
parent 44d2fdeba8
commit 9f7bd971c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -599,7 +599,7 @@ class PenSkin extends Skin {
this._silhouetteBuffer = twgl.createFramebufferInfo(gl, [{format: gl.RGBA}], width, height);
}
gl.clearColor(1, 1, 1, 0);
gl.clearColor(0, 0, 0, 0);
gl.clear(gl.COLOR_BUFFER_BIT);
this._silhouetteDirty = true;