mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
Ensure TextureSource.setFlipY
always updates the texture.
When it's a Canvas or Video, at least.
This commit is contained in:
parent
ec4a9d7328
commit
1b77881dd4
2 changed files with 4 additions and 0 deletions
|
@ -5,3 +5,4 @@
|
||||||
* Fix `RenderTexture` crashing in the presence of a light.
|
* Fix `RenderTexture` crashing in the presence of a light.
|
||||||
* Fix failure to restore compressed textures after WebGL context loss.
|
* Fix failure to restore compressed textures after WebGL context loss.
|
||||||
* Fix a single WebGL error, with no visual side-effects, from occurring while calling `Shader.setRenderToTexture()` after the game has started running. Actually, the root cause was leaving new WebGL textures bound after creation.
|
* Fix a single WebGL error, with no visual side-effects, from occurring while calling `Shader.setRenderToTexture()` after the game has started running. Actually, the root cause was leaving new WebGL textures bound after creation.
|
||||||
|
* Ensure that `TextureSource.setFlipY` always updates the texture.
|
||||||
|
|
|
@ -306,7 +306,10 @@ var TextureSource = new Class({
|
||||||
{
|
{
|
||||||
if (value === undefined) { value = true; }
|
if (value === undefined) { value = true; }
|
||||||
|
|
||||||
|
if (value === this.flipY) { return this; }
|
||||||
|
|
||||||
this.flipY = value;
|
this.flipY = value;
|
||||||
|
this.update();
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue