diff --git a/src/core/textures/BaseRenderTexture.js b/src/core/textures/BaseRenderTexture.js index b242ae2..721dc16 100644 --- a/src/core/textures/BaseRenderTexture.js +++ b/src/core/textures/BaseRenderTexture.js @@ -49,13 +49,14 @@ { BaseTexture.call(this, null, scaleMode); + this.resolution = resolution || CONST.RESOLUTION; + this.width = width || 100; this.height = height || 100; - this.realWidth = this.width * resolution; - this.realHeight = this.height * resolution; + this.realWidth = this.width * this.resolution; + this.realHeight = this.height * this.resolution; - this.resolution = resolution || CONST.RESOLUTION; this.scaleMode = scaleMode || CONST.SCALE_MODES.DEFAULT; this.hasLoaded = true;