Jelajahi Sumber

Fix dir shadow map if border is set to null

clementlandrin 2 tahun lalu
induk
melakukan
80bc9d1131
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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() {