@@ -510,6 +510,8 @@ function WebGLRenderer( parameters ) {
_canvas.removeEventListener( 'webglcontextrestored', onContextRestore, false );
renderLists.dispose();
+ properties.dispose();
+ objects.dispose();
vr.dispose();
@@ -33,7 +33,7 @@ function WebGLObjects( geometries, infoRender ) {
}
- function clear() {
+ function dispose() {
updateList = {};
@@ -42,7 +42,7 @@ function WebGLObjects( geometries, infoRender ) {
return {
update: update,
- clear: clear
+ dispose: dispose
};
@@ -28,7 +28,7 @@ function WebGLProperties() {
properties = {};
@@ -37,7 +37,7 @@ function WebGLProperties() {
get: get,
remove: remove,