GL_APICALL void GL_APIENTRY glDetachShader(
GLuint program,
GLuint shader
);
| Name | Description | |
|---|---|---|
| in | program | Program object |
| in | shader | Shader object to detach |
Detaches a shader object from a program object.
Set program to a program object.
Set shader to the shader object to detach.
This function generates the following errors.
| GL_INVALID_VALUE | The program and shader arguments specify nonexistent objects. |
|---|---|
| GL_INVALID_OPERATION | The object specified by shader is not attached to program. |
CONFIDENTIAL