Skip to content

Commit 3b2a8b1

Browse files
committed
Use dispose
this is fine now that no event listeners are being used
1 parent 97d1ff8 commit 3b2a8b1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/EffectMaterialManager.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ export class EffectMaterialManager implements Disposable {
123123

124124
if(this._gBufferConfig !== value) {
125125

126-
this.invalidateMaterialCache();
127-
this.effectShaderDataCache.clear();
126+
this.dispose();
128127
this._gBufferConfig = value;
129128

130129
}

0 commit comments

Comments
 (0)