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 85376d3 commit be3483dCopy full SHA for be3483d
src/renderers/common/Background.js
@@ -118,6 +118,17 @@ class Background extends DataMap {
118
119
};
120
121
+ function onBackgroundDispose() {
122
+
123
+ background.removeEventListener( 'dispose', onBackgroundDispose );
124
125
+ backgroundMesh.material.dispose();
126
+ backgroundMesh.geometry.dispose();
127
128
+ }
129
130
+ background.addEventListener( 'dispose', onBackgroundDispose );
131
132
}
133
134
const backgroundCacheKey = backgroundNode.getCacheKey();
0 commit comments