Преглед на файлове

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() {