GL_APICALL void GL_APIENTRY glDeleteProgram(
GLuint program
);
| Name | Description | |
|---|---|---|
| in | program | Program object to delete |
Deletes a program object.
Set program to the program object to delete. If you specify a program object that is in use by the glUseProgram function, the program object will wait to be deleted. A program object that is "waiting to be deleted" is actually deleted as soon as a different program object is specified by glUseProgram.
This function generates the following errors.
| GL_INVALID_VALUE | A nonexistent program object was specified. |
|---|
CONFIDENTIAL