Skip to content

Commit a005e07

Browse files
committed
Merge branch 'master' of https://github.com/photonstorm/phaser
2 parents bc88401 + ce66f0a commit a005e07

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/renderer/webgl/pipelines/ForwardDiffuseLightPipeline.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ var ForwardDiffuseLightPipeline = new Class({
7373
{
7474
var lightManager = scene.lights;
7575

76+
if (!lightManager)
77+
{
78+
return this;
79+
}
80+
7681
lightManager.culledLights.length = 0;
7782

7883
if (lightManager.lights.length <= 0 || !lightManager.active)

0 commit comments

Comments
 (0)