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

> ## Name

> cgGetFirstError - get the first error condition

> ## Synopsis

>     #include <Cg/cg.h>

>     CGerror cgGetFirstError( void );

> ## Parameters

> None.

> ## Return Values

> Returns the first error condition that has occured since cgGetFirstError was last called.

> Returns CG_NO_ERROR if no error has occurred.

> ## Description

> cgGetFirstError returns the first error condition that has occured since cgGetFirstError was previously called.

> ## Examples

>       CGerror firstError = cgGetFirstError();

> ## Errors

> None.

> ## History

> cgGetFirstError was introduced in Cg 1.4.

> ## See Also

> cgSetErrorHandler, cgGetError