2
0
Эх сурвалжийг харах

Implemented the new deallocate() methods in webgl_test_memory.

Mr.doob 13 жил өмнө
parent
commit
fa245d81c6

+ 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 );