WebGLRenderingContext: detachShader() method

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

Syntax

js

detachShader(program, shader)

Parameters

program

A WebGLProgram.

shader

A fragment or vertex WebGLShader.

Specifications

Specification
WebGL Specification
# 5.14.9

Browser compatibility

BCD tables only load in the browser

See also