protected override void dispose( bool disposeManagedResources )
{
if ( !IsDisposed )
{
if ( disposeManagedResources )
{
this.RemoveAllTechniques();
foreach ( KeyValuePair<string, MultiRenderTarget> item in globalMRTs )
{
item.Value.Dispose();
}
globalMRTs.Clear();
foreach ( KeyValuePair<string, Texture> item in globalTextures )
{
item.Value.Dispose();
}
}
// There are no unmanaged resources to release, but
// if we add them, they need to be released here.
}
// If it is available, make the call to the
// base class's Dispose(Boolean) method
base.dispose( disposeManagedResources );
}