fixed NPE.

This commit is contained in:
javasabr 2017-01-24 06:43:39 +03:00
parent c2219ecce5
commit 87562bfbae

View File

@ -229,7 +229,12 @@ public class PointLightShadowRenderer extends AbstractShadowRenderer {
* @return
*/
@Override
protected boolean checkCulling(Camera viewCam) {
protected boolean checkCulling(Camera viewCam) {
if (light == null) {
return false;
}
Camera cam = viewCam;
if(frustumCam != null){
cam = frustumCam;