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