Ensure TextureSource.setFlipY always updates the texture.

When it's a Canvas or Video, at least.
This commit is contained in:
Ben Richards 2024-02-27 15:17:52 +13:00
parent ec4a9d7328
commit 1b77881dd4
2 changed files with 4 additions and 0 deletions

View file

@ -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.

View file

@ -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;
}, },