From e3142f313f720e7c54f5698ab91fe2808d75cec0 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Thu, 20 Aug 2020 10:47:21 +0100 Subject: [PATCH] `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 --- src/renderer/webgl/WebGLPipeline.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/renderer/webgl/WebGLPipeline.js b/src/renderer/webgl/WebGLPipeline.js index 3b72d6d6e..d55cd4c8f 100644 --- a/src/renderer/webgl/WebGLPipeline.js +++ b/src/renderer/webgl/WebGLPipeline.js @@ -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; },