glDeleteProgram Function

Syntax

GL_APICALL void GL_APIENTRY glDeleteProgram(
     GLuint program
);

Arguments

Name Description
in program Program object to delete

Return Values

No values are returned.

Description

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_VALUEA nonexistent program object was specified.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL