logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Associated Gets

glGetBufferParameter() with argument GL_BUFFER_SIZE

C Specification

voidglInvalidateBufferData(GLuintbuffer);

Description

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.

Errors

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.

Name

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

Parameters

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

See Also

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

Version Support

       ┌────────────────────────┬───────────────────────────────────────────────────────────────────────┐
       │                        │                OpenGLVersion                                         │
       ├────────────────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
       │ Function2.02.13.03.13.23.34.04.14.24.34.44.5 │
       │ /                      │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Feature                │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Name                   │     │     │     │     │     │     │     │     │     │     │     │     │
       ├────────────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
       │ glInvalidateBufferData │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  ✔  │  ✔  │  ✔  │
       └────────────────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘

See Also