Browse Source

Implemented the new deallocate() methods in webgl_test_memory.

Mr.doob 13 năm trước cách đây
mục cha
commit
fa245d81c6
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  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 );