Selaa lähdekoodia

fix: dispose variable ShaderMaterials in GPUComputationRenderer.dispose() (#33318)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Madison Rickert 1 kuukausi sitten
vanhempi
sitoutus
582a03b74d
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      examples/jsm/misc/GPUComputationRenderer.js

+ 2 - 0
examples/jsm/misc/GPUComputationRenderer.js

@@ -339,6 +339,8 @@ class GPUComputationRenderer {
 
 				}
 
+				variable.material.dispose();
+
 			}
 
 		};

粤ICP备19079148号