Merge pull request #553 from tleunen/dev

fix gl variable reference in RenderTexture.resize
This commit is contained in:
Mat Groves 2014-02-08 10:07:11 +00:00
commit c01aebc5ec

View file

@ -87,7 +87,7 @@ PIXI.RenderTexture.prototype.resize = function(width, height)
this.projection.x = this.width / 2;
this.projection.y = -this.height / 2;
var gl = this.gl;
var gl = this.renderer.gl;
gl.bindTexture(gl.TEXTURE_2D, this.baseTexture._glTextures[gl.id]);
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, this.width, this.height, 0, gl.RGBA, gl.UNSIGNED_BYTE, null);
}