Explorar o código

Implemented the new deallocate() methods in webgl_test_memory.

Mr.doob %!s(int64=13) %!d(string=hai) anos
pai
achega
fa245d81c6
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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 );