Преглед изворни кода

Fix dir shadow map if border is set to null

clementlandrin пре 2 година
родитељ
комит
80bc9d1131
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      h3d/pass/DirShadowMap.hx

+ 1 - 1
h3d/pass/DirShadowMap.hx

@@ -57,7 +57,7 @@ class DirShadowMap extends Shadows {
 	override function dispose() {
 		super.dispose();
 		if( customDepth && depth != null ) depth.dispose();
-		border.dispose();
+		if ( border != null ) border.dispose();
 	}
 
 	public override function getShadowTex() {