mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 12:43:26 +00:00
The private Shader._savedKey
property has been removed as it wasn't used anywhere internally.
This commit is contained in:
parent
bc5c7cf7ab
commit
5c04e20b20
2 changed files with 1 additions and 12 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue