How to dispose a texture from the renderer - renderer.info.textures increases with replacement of texture

I created an example. (it plays in Chrome)
In the console, renderer.info.memory.textures grows with every added image.

According to here renderer.info.memory.textures indicates the number of “Textures in Memory” ?
In my case, I don’t need to keep previous textures in memory.

I also found this link which:

  • disposes the geometry and the texture of the object before removing the object from the scene, and
  • disposes the renderLists

But renderer.info.memory.textures still grows…

Thanks

2 Likes