Groovounet
04-30-2008, 10:37 AM
Hi!
Page 36 in OpenGL 2.1 specification speak about glBufferSubData:
"
To modify some or all of the data contained in a buffer object’s data store, the
client may use the command
void BufferSubData( enum target, intptr offset,
sizeiptr size, const void *data );
with target set to ARRAY_BUFFER
"
However I can't understand why we must use "ARRAY_BUFFER" as the value of the "target" parameter. Why not ELEMENT_ARRAY_BUFFER to update an element buffer ?
It's like we have to change the binding point of the buffer to array buffer because this binding point have a "special feature"... I can't imagine a reason...
After a try, we actually can't update an element buffer from the ELEMENT_ARRAY_BUFFER binding point. (With a GeForce 8800)
Thank!
Page 36 in OpenGL 2.1 specification speak about glBufferSubData:
"
To modify some or all of the data contained in a buffer object’s data store, the
client may use the command
void BufferSubData( enum target, intptr offset,
sizeiptr size, const void *data );
with target set to ARRAY_BUFFER
"
However I can't understand why we must use "ARRAY_BUFFER" as the value of the "target" parameter. Why not ELEMENT_ARRAY_BUFFER to update an element buffer ?
It's like we have to change the binding point of the buffer to array buffer because this binding point have a "special feature"... I can't imagine a reason...
After a try, we actually can't update an element buffer from the ELEMENT_ARRAY_BUFFER binding point. (With a GeForce 8800)
Thank!