diff --git a/src/core/textures/BaseRenderTexture.js b/src/core/textures/BaseRenderTexture.js index 965f597..b242ae2 100644 --- a/src/core/textures/BaseRenderTexture.js +++ b/src/core/textures/BaseRenderTexture.js @@ -52,6 +52,9 @@ this.width = width || 100; this.height = height || 100; + this.realWidth = this.width * resolution; + this.realHeight = this.height * resolution; + this.resolution = resolution || CONST.RESOLUTION; this.scaleMode = scaleMode || CONST.SCALE_MODES.DEFAULT; this.hasLoaded = true; @@ -103,6 +106,9 @@ this.width = width; this.height = height; + this.realWidth = this.width * this.resolution; + this.realHeight = this.height * this.resolution; + if (!this.valid) { return;