diff --git a/src/game-lib-system-particle.js b/src/game-lib-system-particle.js index 157a613..ce856d0 100644 --- a/src/game-lib-system-particle.js +++ b/src/game-lib-system-particle.js @@ -203,6 +203,9 @@ GameLib.System.Particle.prototype.beforeRender = function(data) { particle.material.opacity < 0 ) { particle.userData.scene.remove(particle); + particle.geometry.dispose(); + //particle.material.map.dispose(); + particle.material.dispose(); } else { result.push(particle); }