Skip to content

Commit 5c04e20

Browse files
committed
The private Shader._savedKey property has been removed as it wasn't used anywhere internally.
1 parent bc5c7cf commit 5c04e20

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
### Updates
1010

1111
* 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)
12+
* The private `Shader._savedKey` property has been removed as it wasn't used anywhere internally.
1213

1314
### Bug Fixes
1415

src/gameobjects/shader/Shader.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -345,16 +345,6 @@ var Shader = new Class({
345345
*/
346346
this.texture = null;
347347

348-
/**
349-
* Internal saved texture key.
350-
*
351-
* @name Phaser.GameObjects.Shader#_savedKey
352-
* @type {boolean}
353-
* @private
354-
* @since 3.19.0
355-
*/
356-
this._savedKey = '';
357-
358348
this.setPosition(x, y);
359349
this.setSize(width, height);
360350
this.setOrigin(0.5, 0.5);
@@ -448,8 +438,6 @@ var Shader = new Class({
448438

449439
if (key)
450440
{
451-
this._savedKey = key;
452-
453441
this.texture = this.scene.sys.textures.addGLTexture(key, this.glTexture, width, height);
454442
}
455443
}

0 commit comments

Comments
 (0)