PDA

View Full Version : mistake in manpage of glBufferData ?



jbacon
09-16-2009, 05:17 AM
dear manpage maintainer,

I believe in the following quote from
http://www.opengl.org/sdk/docs/man/xhtml/glBufferData.xml
STREAM and DYNAMIC use are reversed.

Jonathan Bacon

</quote>

STREAM
The data store contents will be modified once and used at most a few times.

STATIC
The data store contents will be modified once and used many times.

DYNAMIC
The data store contents will be modified repeatedly and used many times.

</quote>

Alfonse Reinheart
09-16-2009, 11:39 AM
It's more that they screwed up the definition of STREAM than anything else.

STREAM expects you to respecify the buffer with BufferData, rather than simply changing the data in the buffer with BufferSubData.