Axiom.RenderSystems.OpenGL.GLHardwarePixelBuffer.dispose C# (CSharp) Method

dispose() protected method

protected dispose ( bool disposeManagedResources ) : void
disposeManagedResources bool
return void
		protected override void dispose( bool disposeManagedResources )
		{
			if ( !IsDisposed )
			{
				if ( disposeManagedResources )
				{
					// Dispose managed resources.
				}

				// There are no unmanaged resources to release, but
				// if we add them, they need to be released here.
				if ( _bufferPinndedHandle.IsAllocated )
				{
					_bufferPinndedHandle.Free();
				}
				buffer.Data = IntPtr.Zero;
				buffer = null;
			}

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