WebGLRenderingContext.detachShader()

The WebGLRenderingContext.detachShader() method of the WebGL API detaches a previously attached WebGLShader from a WebGLProgram.

Syntax

WebGLShader gl.detachShader(program, shader);

Parameters

program
A WebGLProgram.
shader
A fragment or vertex WebGLShader.

Specifications

Specification Status Comment
WebGL 1.0
The definition of 'detachShader' in that specification.
Recommendation Initial definition.
OpenGL ES 2.0
The definition of 'glDetachShader' in that specification.
Standard OpenGL man page.

Browser compatibility

FeatureChromeFirefoxEdgeInternet ExplorerOperaSafari
Basic Support94.01211125.1
FeatureAndroidChrome for AndroidEdge mobileFirefox for AndroidIE mobileOpera AndroidiOS Safari
Basic Support(Yes)25(Yes)(Yes)11128.1

See also

Document Tags and Contributors

Tags: 
 Contributors to this page: fscholz, teoli, gregtatum
 Last updated by: fscholz,