We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9f7c39 commit b3f48ceCopy full SHA for b3f48ce
src/renderers/common/Bindings.js
@@ -202,13 +202,15 @@ class Bindings extends DataMap {
202
203
delete ( renderObject ) {
204
205
- const bindings = this.get( renderObject ).bindings;
+ const bindings = renderObject.getBindings();
206
+
207
+ for ( const bindGroup of bindings ) {
208
- for ( let i = 0, l = bindings.length; i < l; i ++ ) {
209
+ for ( const binding of bindGroup.bindings ) {
210
- const binding = bindings[ i ];
211
+ if ( binding.isNodeUniformsGroup && binding._isCommon === true && ! binding.groupNode.shared ) binding.freeCommon();
212
- if ( binding.isNodeUniformsGroup && binding._isCommon === true ) binding.freeCommon();
213
+ }
214
215
}
216
0 commit comments