Axiom.RenderSystems.OpenGL.GLFBORTTManager.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.
					if ( _renderBufferMap.Count != 0 )
					{
						LogManager.Instance.Write( "GL: Warning! GLFBORTTManager Disposed, but not all renderbuffers were released." );
					}
				}

				Gl.glDeleteFramebuffersEXT( 1, ref _tempFBO );

				// 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 );
		}