Skip to content

Commit 809695f

Browse files
committed
Dispose ASCII texture
1 parent 0546503 commit 809695f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/effects/ASCIIEffect.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,4 +219,20 @@ export class ASCIIEffect extends Effect {
219219

220220
}
221221

222+
/**
223+
* Deletes internal render targets and textures.
224+
*/
225+
226+
dispose() {
227+
228+
if(this.asciiTexture !== null) {
229+
230+
this.asciiTexture.dispose();
231+
232+
}
233+
234+
super.dispose();
235+
236+
}
237+
222238
}

0 commit comments

Comments
 (0)