Browse Source

Fix dispose (WeakMap.clear is obsolete and should not be used)

Ondřej Španěl 5 years ago
parent
commit
267ee63644
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/renderers/webgl/WebGLObjects.js

+ 1 - 1
src/renderers/webgl/WebGLObjects.js

@@ -41,7 +41,7 @@ function WebGLObjects( gl, geometries, attributes, info ) {
 
 	function dispose() {
 
-		updateMap.clear();
+		updateMap = new WeakMap();
 
 	}