protected override void UnloadImpl()
{
// destroy this program if it had been loaded
if ( cgProgram != IntPtr.Zero )
{
Cg.cgDestroyProgram( cgProgram );
CgHelper.CheckCgError( string.Format( "Error unloading CgProgram named '{0}'", this.Name ), cgContext );
}
}