Applies to: desktop apps only
The glDeleteTextures function deletes named textures.
void WINAPI glDeleteTextures( GLsizei n, const GLuint *textures );
The number of textures to be deleted.
An array of textures to be deleted.
This function does not return a value.
The following error codes can be retrieved by the glGetError function.
n was a negative value.
The glDeleteTextures function deletes n textures named by the elements of the array textures. After a texture is deleted, it has no contents or dimensionality, and its name is free for reuse (for example, by glGenTextures). The glDeleteTextures function ignores zeros and names that do not correspond to existing textures.
If a texture that is currently bound is deleted, the binding reverts to zero (the default texture).
You cannot include calls to glDeleteTextures in display lists.
Note The glDeleteTextures function is only available in OpenGL version 1.1 or later.
The following function retrieves information related to glDeleteTextures:
Minimum supported client
|Windows 2000 Professional|
Minimum supported server
|Windows 2000 Server|
Build date: 3/6/2012