void glDetachShader(GLuint program, GLuint shader);
If shader has already been flagged for deletion by a call to glDeleteShader() and it is not attached to any other program object, it will be deleted after it has been detached.
GL_INVALID_OPERATION is generated if program is not a program object.
GL_INVALID_OPERATION is generated if shader is not a shader object.
GL_INVALID_OPERATION is generated if shader is not attached to program.
glGetShader() with arguments shader and GL_DELETE_STATUS
|Function / Feature Name||2.0||2.1||3.0||3.1||3.2||3.3||4.0||4.1||4.2||4.3||4.4||4.5|
Copyright © 2010-2014 Khronos Group