WebGLRenderingContext.detachShader()

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

Syntax

void gl.detachShader(program, shader);

Parameters

program

A WebGLProgram.

shader

A fragment or vertex WebGLShader.

Specifications

Specification
WebGL Specification (WebGL)
# 5.14.9

Browser compatibility

BCD tables only load in the browser

See also