Browse Source

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

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Madison Rickert 1 month ago
parent
commit
582a03b74d
1 changed files with 2 additions and 0 deletions
  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号