Axiom.RenderSystems.DirectX9.D3DTexture.dispose C# (CSharp) Метод

dispose() защищенный метод

Implementation of IDisposable to determine how resources are disposed of.
protected dispose ( bool disposeManagedResources ) : void
disposeManagedResources bool
Результат void
		protected override void dispose( bool disposeManagedResources )
		{
			if ( !IsDisposed )
			{
				if ( disposeManagedResources )
				{
					if ( IsLoaded )
					{
						this.Unload();
					}

					this.ClearSurfaceList();
					foreach ( IDisposable disp in this._managedObjects )
					{
						disp.Dispose();
					}
				}

				// There are no unmanaged resources to release, but
				// if we add them, they need to be released here.
				FreeInternalResources();
			}


			// If it is available, make the call to the
			// base class's Dispose(Boolean) method
			base.dispose( disposeManagedResources );
		}