glInvalidateBufferData.3G man page

glInvalidateBufferData — invalidate the content of a buffer object's data store

C Specification

void glInvalidateBufferData(GLuint buffer);



The name of a buffer object whose data store to invalidate.


glInvalidateBufferData invalidates all of the content of the data store of a buffer object. After invalidation, the content of the buffer's data store becomes undefined.


GL_INVALID_VALUE is generated if buffer is not the name of an existing buffer object.

GL_INVALID_OPERATION is generated if any part of buffer is currently mapped.

Associated Gets

glGetBufferParameter() with argument GL_BUFFER_SIZE

Version Support

OpenGL Version
Function / Feature Name 2.0 2.1 3.0 3.1 3.2 3.3 4.0 4.1 4.2 4.3 4.4 4.5
glInvalidateBufferData - - - - - - - - -

See Also

glInvalidateTexSubImage(),, glInvalidateTexImage(), glInvalidateBufferSubData(), glInvalidateFramebuffer(), glInvalidateSubFramebuffer().


07/13/2018 [FIXME: source] [FIXME: manual]