mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
Merge branch 'master' of https://github.com/photonstorm/phaser
This commit is contained in:
commit
a005e076fa
1 changed files with 5 additions and 0 deletions
|
@ -73,6 +73,11 @@ var ForwardDiffuseLightPipeline = new Class({
|
||||||
{
|
{
|
||||||
var lightManager = scene.lights;
|
var lightManager = scene.lights;
|
||||||
|
|
||||||
|
if (!lightManager)
|
||||||
|
{
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
lightManager.culledLights.length = 0;
|
lightManager.culledLights.length = 0;
|
||||||
|
|
||||||
if (lightManager.lights.length <= 0 || !lightManager.active)
|
if (lightManager.lights.length <= 0 || !lightManager.active)
|
||||||
|
|
Loading…
Reference in a new issue