delete-gl-program ( program -- )


Vocabulary
opengl.shaders

Inputs
programA gl-program object


Outputs
None

Word description
Deletes the program object, invalidating it and releasing any resources allocated for it by the OpenGL implementation. Any attached gl-shaders are also deleted. If the shader objects should be preserved, they should each be detached using glDetachShader. The program object can then be destroyed alone using glDeleteProgram.

Definition