web api instance method
WebGLRenderingContext: deleteProgram() method
Available in workers
The WebGLRenderingContext.deleteProgram() method of the
WebGL API deletes a given
WebGLProgram object. This method has no effect if the program has already
been deleted.
Syntax
deleteProgram(program)
Parameters
program- : A
WebGLProgramobject to delete.
- : A
Return value
None (undefined).
Examples
Deleting a program
const canvas = document.getElementById("canvas");
const gl = canvas.getContext("webgl");
const program = gl.createProgram();
// …
gl.deleteProgram(program);
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.