Update silhouette after getting texture at a new scale

This commit is contained in:
DD Liu 2019-01-22 13:58:59 -05:00
parent cfa0194ab8
commit cc448951f9

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);
}
});
}