Merge pull request #404 from LLK/touchingColor2

Update silhouette after getting texture at a new scale
This commit is contained in:
DD Liu 2019-01-22 17:29:43 -05:00 committed by GitHub
commit 931ff270dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,6 +80,7 @@ class SVGSkin extends Skin {
const gl = this._renderer.gl;
gl.bindTexture(gl.TEXTURE_2D, this._texture);
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, this._svgRenderer.canvas);
this._silhouette.update(this._svgRenderer.canvas);
}
});
}