浏览代码

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