Browse Source

fixed normal map leak

ncannasse 7 years ago
parent
commit
9a736062be
1 changed files with 2 additions and 0 deletions
  1. 2 0
      h3d/scene/World.hx

+ 2 - 0
h3d/scene/World.hx

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