2
0
Эх сурвалжийг харах

Fix null pointer exception adding guard.

clementlandrin 4 жил өмнө
parent
commit
125889c5b3
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      h3d/scene/Renderer.hx

+ 2 - 1
h3d/scene/Renderer.hx

@@ -56,7 +56,8 @@ class Renderer extends hxd.impl.AnyProps {
 			p.dispose();
 		for( f in effects )
 			f.dispose();
-		ctx.lightSystem.dispose();
+		if ( ctx.lightSystem != null )
+			ctx.lightSystem.dispose();
 		passObjects = new Map();
 	}