Sfoglia il codice sorgente

WebGPURenderer: Fix Renderer `dispose()` (#27471)

* fix dispose

* temporary remove _properties
Renaud Rohlinger 1 anno fa
parent
commit
eda87b223e

+ 1 - 1
examples/jsm/renderers/common/DataMap.js

@@ -45,7 +45,7 @@ class DataMap {
 
 	dispose() {
 
-		this.data.clear();
+		this.data = new WeakMap();
 
 	}
 

+ 0 - 2
examples/jsm/renderers/common/Renderer.js

@@ -70,7 +70,6 @@ class Renderer {
 		this._scissor = new Vector4( 0, 0, this._width, this._height );
 		this._scissorTest = false;
 
-		this._properties = null;
 		this._attributes = null;
 		this._geometries = null;
 		this._nodes = null;
@@ -660,7 +659,6 @@ class Renderer {
 
 		this._animation.dispose();
 		this._objects.dispose();
-		this._properties.dispose();
 		this._pipelines.dispose();
 		this._nodes.dispose();
 		this._bindings.dispose();