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

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

Ondřej Španěl 5 жил өмнө
parent
commit
267ee63644

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

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