I am attempting to deallocate a texture once it has been loaded in three.js. The texture is loaded using
var tex = THREE.ImageUtils.loadTexture("image.png");
and it is being displayed correctly. However, when I attempt to use:
tex.dispose();
I consistently receive the error message "Uncaught TypeError: Object [object Object] has no method 'dispose'."
Could someone please advise me on what I might be overlooking?
Thank you