소스 검색

fixed normal map leak

ncannasse 7 년 전
부모
커밋
9a736062be
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      h3d/scene/World.hx

+ 2 - 0
h3d/scene/World.hx

@@ -524,6 +524,8 @@ class World extends Object {
 			b.diffuse.dispose();
 			if(b.spec != null)
 				b.spec.dispose();
+			if(b.normal != null)
+				b.normal.dispose();
 		}
 		bigTextures = [];
 		textures = new Map();