Просмотр исходного кода

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

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Madison Rickert 1 неделя назад
Родитель
Сommit
582a03b74d
1 измененных файлов с 2 добавлено и 0 удалено
  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号