From 63a941aaae889e071dac6df25933de00f729110d Mon Sep 17 00:00:00 2001 From: Thomas Weber Date: Sat, 10 Jul 2021 15:57:56 -0500 Subject: [PATCH] Fix stamping vector skins in high quality pen --- src/RenderWebGL.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/RenderWebGL.js b/src/RenderWebGL.js index dc504c2db..c8ca5e851 100644 --- a/src/RenderWebGL.js +++ b/src/RenderWebGL.js @@ -1697,7 +1697,11 @@ class RenderWebGL extends EventEmitter { const projection = twgl.m4.ortho(bounds.left, bounds.right, bounds.top, bounds.bottom, -1, 1); // Draw the stamped sprite onto the PenSkin's framebuffer. - this._drawThese([stampID], ShaderManager.DRAW_MODE.default, projection, {ignoreVisibility: true}); + this._drawThese([stampID], ShaderManager.DRAW_MODE.default, projection, { + ignoreVisibility: true, + framebufferWidth: this._nativeSize[0] * skin.renderQuality, + framebufferHeight: this._nativeSize[1] * skin.renderQuality + }); skin._silhouetteDirty = true; }