Sprites need to flip the UV if the source is a GLTexture

This commit is contained in:
Richard Davey 2019-06-23 22:12:14 +01:00
parent 5bbd10b4c4
commit f323097714

View file

@ -567,7 +567,10 @@ var TextureTintPipeline = new Class({
frameWidth *= -1;
}
if (sprite.flipY)
// Invert the flipY if this is a GLTexture
var flipY = sprite.flipY ^ (frame.source.isGLTexture ? 1 : 0);
if (flipY)
{
y += frameHeight;
frameHeight *= -1;