소스 검색

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