Explorar o código

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

Ondřej Španěl %!s(int64=5) %!d(string=hai) anos
pai
achega
267ee63644
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
 
 	}