Skip to content

Commit b704fdd

Browse files
committed
Merge branch 'master' of https://github.com/photonstorm/phaser
2 parents d875a59 + 5c04e20 commit b704fdd

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
@@ -10,6 +10,7 @@
1010
### Updates
1111

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

1415
### Bug Fixes
1516

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)