Click or drag to resize

Program.DetachShader Method

Detach a shader object from a program object.

Namespace:  Ooogles
Assembly:  Ooogles (in Ooogles.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public void DetachShader(
	Shader shader
)

Parameters

shader
Type: Ooogles.Shader
The shader object to be detached.
Exceptions
ExceptionCondition
GLExceptionInvalidOperation if shader is not attached to this program.
Remarks
This command can be used to undo the effect of the command AttachShader.

If shader has already been flagged for deletion and it is not attached to any other program object, it will be deleted after it has been detached.

OpenGL API: glDetachShader

See Also