diff --git a/src/core/graphics/Graphics.js b/src/core/graphics/Graphics.js index a550aec..ed6fa1e 100644 --- a/src/core/graphics/Graphics.js +++ b/src/core/graphics/Graphics.js @@ -977,7 +977,7 @@ const bounds = this.getLocalBounds(); - const canvasBuffer = new RenderTexture.create(bounds.width * resolution, bounds.height * resolution); + const canvasBuffer = RenderTexture.create(bounds.width * resolution, bounds.height * resolution); if(!canvasRenderer) { diff --git a/src/core/graphics/Graphics.js b/src/core/graphics/Graphics.js index a550aec..ed6fa1e 100644 --- a/src/core/graphics/Graphics.js +++ b/src/core/graphics/Graphics.js @@ -977,7 +977,7 @@ const bounds = this.getLocalBounds(); - const canvasBuffer = new RenderTexture.create(bounds.width * resolution, bounds.height * resolution); + const canvasBuffer = RenderTexture.create(bounds.width * resolution, bounds.height * resolution); if(!canvasRenderer) { diff --git a/src/extras/cacheAsBitmap.js b/src/extras/cacheAsBitmap.js index 70b00f3..0fb87b7 100644 --- a/src/extras/cacheAsBitmap.js +++ b/src/extras/cacheAsBitmap.js @@ -261,7 +261,7 @@ const cachedRenderTarget = renderer.context; - const renderTexture = new core.RenderTexture.create(bounds.width | 0, bounds.height | 0); + const renderTexture = core.RenderTexture.create(bounds.width | 0, bounds.height | 0); // need to set // const m = _tempMatrix;