mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 23:24:41 +00:00
Sprites need to flip the UV if the source is a GLTexture
This commit is contained in:
parent
5bbd10b4c4
commit
f323097714
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue