mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 23:24:41 +00:00
Better flip handling
This commit is contained in:
parent
3bf3057da0
commit
c0d58ee69e
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue