Browse Source

Implemented the new deallocate() methods in webgl_test_memory.

Mr.doob 13 years ago
parent
commit
fa245d81c6
1 changed files with 8 additions and 0 deletions
  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 );