diff --git a/src/core/graphics/Graphics.js b/src/core/graphics/Graphics.js index 10d82d3..05073b3 100644 --- a/src/core/graphics/Graphics.js +++ b/src/core/graphics/Graphics.js @@ -1026,7 +1026,7 @@ { const bounds = this.getLocalBounds(); - const canvasBuffer = RenderTexture.create(bounds.width * resolution, bounds.height * resolution); + const canvasBuffer = RenderTexture.create(bounds.width, bounds.height, scaleMode, resolution); if (!canvasRenderer) { @@ -1041,6 +1041,7 @@ const texture = Texture.fromCanvas(canvasBuffer.baseTexture._canvasRenderTarget.canvas, scaleMode); texture.baseTexture.resolution = resolution; + texture.baseTexture.update(); return texture; }