diff --git a/src/pixi/renderers/webgl/utils/WebGLSpriteBatch.js b/src/pixi/renderers/webgl/utils/WebGLSpriteBatch.js index 595ec50..7719bac 100644 --- a/src/pixi/renderers/webgl/utils/WebGLSpriteBatch.js +++ b/src/pixi/renderers/webgl/utils/WebGLSpriteBatch.js @@ -156,7 +156,7 @@ } // get the uvs for the texture - var uvs = sprite.texture._uvs; + var uvs = texture._uvs; // if the uvs have not updated then no point rendering just yet! if(!uvs)return; @@ -173,10 +173,10 @@ var w0, w1, h0, h1; - if (sprite.texture.trim) + if (texture.trim) { // if the sprite is trimmed then we need to add the extra space before transforming the sprite coords.. - var trim = sprite.texture.trim; + var trim = texture.trim; w1 = trim.x - aX * trim.width; w0 = w1 + texture.frame.width;