--- title: WebGLRenderingContext.deleteTexture() slug: Web/API/WebGLRenderingContext/deleteTexture translation_of: Web/API/WebGLRenderingContext/deleteTexture ---
void gl.deleteTexture(texture);
无.
var canvas = document.getElementById('canvas'); var gl = canvas.getContext('webgl'); var texture = gl.createTexture(); // ... gl.deleteTexture(texture);
Specification | Status | Comment |
---|---|---|
{{SpecName('WebGL', "#5.14.8", "deleteTexture")}} | {{Spec2('WebGL')}} | Initial definition. |
{{SpecName('OpenGL ES 2.0', "glDeleteTextures.xml", "glDeleteTextures")}} | {{Spec2('OpenGL ES 2.0')}} | Man page of the (similar) OpenGL API. |
{{Compat("api.WebGLRenderingContext.deleteTexture")}}