GLUNMAPBUFFR(3gl)GLUNMAPBUFFR(3gl)NAMEglUnmapBuffer - relinquish the mapping of a mapped buffer object
C SPECIFICATION
GLboolean glUnmapBuffer( GLenum target )
PARAMETERS
target Specifies the target buffer. Must be GL_ARRAY_BUFFER.
DESCRIPTIONglUnmapBuffer relinquishes the mapping of the buffer object. Unmapping
a mapped buffer invalidates the pointers to its data store and sets the
object's GL_BUFFER_MAPPED state to GL_FALSE and its GL_BUF‐
FER_MAP_POINTER state to NULL.
glUnmapBuffer returns GL_TRUE unless data values in the buffer's data
store have become corrupted during the period that the buffer was
mapped. If such corruption has occurred, glUnmapBuffer returns
GL_FALSE, and the contents of the buffer's data store become undefined.
ERRORS
GL_INVALID_ENUM is generated if target is not GL_ARRAY_BUFFER.
GL_INVALID_OPERATION is generated if the data store is in the unmapped
state.
ASSOCIATED GETS
glGetBufferParameter with argument GL_BUFFER_SIZE
glGetBufferParameter with argument GL_BUFFER_USAGE
glGetBufferParameter with argument GL_BUFFER_ACCESS
glGetBufferParameter with argument GL_BUFFER_MAPPED
glGetBufferPointer with argument GL_BUFFER_MAP_POINTER
SEE ALSO
glMapBuffer
13 Jan 04 GLUNMAPBUFFR(3gl)