diff --git a/src/pixi/textures/RenderTexture.js b/src/pixi/textures/RenderTexture.js index 44856ae..849ce47 100644 --- a/src/pixi/textures/RenderTexture.js +++ b/src/pixi/textures/RenderTexture.js @@ -93,7 +93,7 @@ PIXI.Texture.call(this, this.baseTexture, - new PIXI.Rectangle(0, 0, this.width, this.height) + new PIXI.Rectangle(0, 0, this.width * this.resolution, this.height * this.resolution) ); /** @@ -109,7 +109,7 @@ var gl = this.renderer.gl; this.baseTexture._dirty[gl.id] = false; - this.textureBuffer = new PIXI.FilterTexture(gl, this.width * this.resolution, this.height * this.resolution, this.baseTexture.scaleMode); + this.textureBuffer = new PIXI.FilterTexture(gl, this.width, this.height, this.baseTexture.scaleMode); this.baseTexture._glTextures[gl.id] = this.textureBuffer.texture; this.render = this.renderWebGL; @@ -148,8 +148,11 @@ this.valid = (width > 0 && height > 0); - this.width = this.frame.width = this.crop.width = width; - this.height = this.frame.height = this.crop.height = height; + this.width = width; + this.height = height; + + this.frame.width = this.crop.width = width * this.resolution; + this.frame.height = this.crop.height = height * this.resolution; if (updateBase) { @@ -165,7 +168,7 @@ if(!this.valid)return; - this.textureBuffer.resize(this.width * this.resolution, this.height * this.resolution); + this.textureBuffer.resize(this.width, this.height); }; /**