mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 21:53:59 +00:00
Tweaked RT draw fix
This commit is contained in:
parent
de0133e3cc
commit
d38cae6682
1 changed files with 1 additions and 8 deletions
|
@ -118,19 +118,12 @@ var SpineGameObjectWebGLRenderer = function (renderer, src, interpolationPercent
|
|||
}
|
||||
}
|
||||
|
||||
if (camera.renderToTexture)
|
||||
if (camera.renderToTexture || renderer.currentFramebuffer !== null)
|
||||
{
|
||||
skeleton.y = calcMatrix.ty;
|
||||
skeleton.scaleY *= -1;
|
||||
}
|
||||
|
||||
if (renderer.currentFramebuffer !== null)
|
||||
{
|
||||
skeleton.x = 0;
|
||||
skeleton.y = calcMatrix.ty - (viewportHeight * src.scaleY);
|
||||
skeleton.scaleY *= -1;
|
||||
}
|
||||
|
||||
// Add autoUpdate option
|
||||
skeleton.updateWorldTransform();
|
||||
|
||||
|
|
Loading…
Reference in a new issue