From 5c04e20b203e94a43570082c54784f03bb9b71a5 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Fri, 20 Sep 2019 14:48:41 +0100 Subject: [PATCH] The private `Shader._savedKey` property has been removed as it wasn't used anywhere internally. --- CHANGELOG.md | 1 + src/gameobjects/shader/Shader.js | 12 ------------ 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c011abf2..3e7b5e9a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ ### Updates * When calling `Shader.setRenderToTexture()` it will now draw the shader just once, immediately to the texture, to avoid the texture being blank for a single frame (thanks Kyle) +* The private `Shader._savedKey` property has been removed as it wasn't used anywhere internally. ### Bug Fixes diff --git a/src/gameobjects/shader/Shader.js b/src/gameobjects/shader/Shader.js index ad879217a..163801fe5 100644 --- a/src/gameobjects/shader/Shader.js +++ b/src/gameobjects/shader/Shader.js @@ -345,16 +345,6 @@ var Shader = new Class({ */ this.texture = null; - /** - * Internal saved texture key. - * - * @name Phaser.GameObjects.Shader#_savedKey - * @type {boolean} - * @private - * @since 3.19.0 - */ - this._savedKey = ''; - this.setPosition(x, y); this.setSize(width, height); this.setOrigin(0.5, 0.5); @@ -448,8 +438,6 @@ var Shader = new Class({ if (key) { - this._savedKey = key; - this.texture = this.scene.sys.textures.addGLTexture(key, this.glTexture, width, height); } }