public override void Unload()
{
base.Unload();
if ( IsLoaded )
{
if ( this._texture != null )
{
this._texture.Dispose();
this._texture = null;
}
if ( this._normTexture != null )
{
LogManager.Instance.Write( "Disposed normal texture {0}", this.Name );
this._normTexture.Dispose();
this._normTexture = null;
}
if ( this._cubeTexture != null )
{
this._cubeTexture.Dispose();
this._cubeTexture = null;
}
if ( this._volumeTexture != null )
{
this._volumeTexture.Dispose();
this._volumeTexture = null;
}
}
}