diff --git a/changelog/3.80.1/CHANGELOG-v3.80.1.md b/changelog/3.80.1/CHANGELOG-v3.80.1.md index 1f5c5ff1e..dfe963eca 100644 --- a/changelog/3.80.1/CHANGELOG-v3.80.1.md +++ b/changelog/3.80.1/CHANGELOG-v3.80.1.md @@ -5,3 +5,4 @@ * Fix `RenderTexture` crashing in the presence of a light. * 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. +* Ensure that `TextureSource.setFlipY` always updates the texture. diff --git a/src/textures/TextureSource.js b/src/textures/TextureSource.js index 2a026c06b..80a6eb086 100644 --- a/src/textures/TextureSource.js +++ b/src/textures/TextureSource.js @@ -306,7 +306,10 @@ var TextureSource = new Class({ { if (value === undefined) { value = true; } + if (value === this.flipY) { return this; } + this.flipY = value; + this.update(); return this; },