Better flip handling

This commit is contained in:
Richard Davey 2019-06-26 00:35:22 +01:00
parent 3bf3057da0
commit c0d58ee69e

View file

@ -567,8 +567,8 @@ var TextureTintPipeline = new Class({
frameWidth *= -1;
}
// Invert the flipY if this is a GLTexture
var flipY = sprite.flipY ^ (frame.source.isGLTexture ? 1 : 0);
// Invert the flipY if this is coming from a GLTexture
var flipY = sprite.flipY ^ ((frame.source.isGLTexture && !texture.flipY) ? 1 : 0);
if (flipY)
{