mirror of
https://github.com/photonstorm/phaser
synced 2024-11-13 00:17:24 +00:00
WebGLPipeline.hasBooted
is a new boolean property that tracks if the pipeline has been booted or not, which is now far more important in 3.5 than in previous versions. This is checked in the WebGLRenderer.addPipeline
method, and if not set, the pipeline is booted. Fix #5251 #5255
This commit is contained in:
parent
50c629dca8
commit
e3142f313f
1 changed files with 12 additions and 0 deletions
|
@ -255,6 +255,16 @@ var WebGLPipeline = new Class({
|
|||
* @since 3.50.0
|
||||
*/
|
||||
this.forceZero = false;
|
||||
|
||||
/**
|
||||
* Indicates if the current pipeline has booted or not.
|
||||
*
|
||||
* @name Phaser.Renderer.WebGL.WebGLPipeline#hasBooted
|
||||
* @type {boolean}
|
||||
* @readonly
|
||||
* @since 3.50.0
|
||||
*/
|
||||
this.hasBooted = false;
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -296,6 +306,8 @@ var WebGLPipeline = new Class({
|
|||
}
|
||||
}
|
||||
|
||||
this.hasBooted = true;
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue