浏览代码

Implemented the new deallocate() methods in webgl_test_memory.

Mr.doob 13 年之前
父节点
当前提交
fa245d81c6
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      examples/webgl_test_memory.html

+ 8 - 0
examples/webgl_test_memory.html

@@ -85,6 +85,14 @@
 
 				scene.remove( mesh );
 
+				//
+
+				texture.deallocate();
+
+				mesh.deallocate();
+				mesh.geometry.deallocate();
+				mesh.material.deallocate();
+
 				renderer.deallocateObject( mesh );
 				renderer.deallocateTexture( texture );