This command effectively undoes the effects call glcreateshader
glDeleteShader
Name
glDeleteShader Deletes a shader object
C Specification
void glDeleteShader(GLuint shader)
Parameters
Errors
GL_INVALID_VALUE is generated if shader is not a value
generated by OpenGL.
GL_INVALID_OPERATION is generated if glDeleteShader is executed between the execution of glBegin and the corresponding execution of glEnd.
|
|
---|
Errors
GL_INVALID_VALUE is generated if either program or
shader is a value that was not generated by OpenGL.
GL_INVALID_OPERATION is generated if program is not a program object.