cgGLUnbindProgram
Keywords: cgGLUnbindProgram, NVIDIA, NVIDIA Cg Toolkit, Cg Toolkit, Shader, Shader Programming, GPU Shader Programming, GPU Program

> ## Name

> cgGLUnbindProgram - unbinds the program bound in a profile

> ## Synopsis

>     #include <Cg/cgGL.h>

>     void cgGLUnbindProgram( CGprofile profile );

> ## Parameters

> profile
>   The profile from which to unbind any bound program.

> ## Return Values

> None.

> ## Description

> cgGLUnbindProgram unbinds the program which is bound in the profile specified by profile. It also resets the texture state back to the state it was in at the point cgGLBindProgram was first called with a program in the given profile.

> ## Examples

>     cgGLUnbindProgram(CG_PROFILE_ARBVP1);
>     cgGLUnbindProgram(CG_PROFILE_ARBFP1);

> ## Errors

> CG_INVALID_PROFILE_ERROR is generated if profile is not a supported OpenGL profile.

> ## History

> cgGLUnbindProgram was introduced in Cg 1.2.

> ## See Also

> cgGLSetManageTextureParameters, cgGLBindProgram