소스 검색

Implemented the new deallocate() methods in webgl_test_memory.

Mr.doob 12 년 전
부모
커밋
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 );