public void Purge()
{
if(this.Disposed == true)
{
throw new ObjectDisposedException(this.GetType().Name);
}
if(this.IsLoaded == true)
{
// TODO: because the content manager doesn't actually remove the texture, we don't support
// purging/reloading right now.
idConsole.Warning("TODO: _texture.Dispose();");
_texture = null;
}
// clear all the current binding caches, so the next bind will do a real one
idE.RenderSystem.ClearTextureUnits();
}