detachShader method

void detachShader(
  1. WebGLProgram program,
  2. WebGLShader shader
)

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

Implementation

external void detachShader(
  WebGLProgram program,
  WebGLShader shader,
);