Skip to content

Commit f323097

Browse files
committed
Sprites need to flip the UV if the source is a GLTexture
1 parent 5bbd10b commit f323097

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/renderer/webgl/pipelines/TextureTintPipeline.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,10 @@ var TextureTintPipeline = new Class({
567567
frameWidth *= -1;
568568
}
569569

570-
if (sprite.flipY)
570+
// Invert the flipY if this is a GLTexture
571+
var flipY = sprite.flipY ^ (frame.source.isGLTexture ? 1 : 0);
572+
573+
if (flipY)
571574
{
572575
y += frameHeight;
573576
frameHeight *= -1;

0 commit comments

Comments
 (0)