Allow texture to not be flipped

This commit is contained in:
Chad Engler 2014-01-27 20:04:04 -08:00
parent 68df2fdafd
commit b5dc38b7fe

View file

@ -208,7 +208,7 @@ PIXI.PixiShader.prototype.initSampler2D = function(uniform)
wrapT = gl.REPEAT; wrapT = gl.REPEAT;
} }
gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, false); gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, !!data.flipY);
if (data.width) if (data.width)
{ {