Difference between revisions of "Talk:Buffer Object"

From OpenGL.org
Jump to: navigation, search
(Created page with '=== Unbinding mapped buffers === :''"While a buffer is mapped, you cannot do anything to it. Do not call any OpenGL function that would cause OpenGL to write to or read from that…')
 
(talk)
Line 3: Line 3:
  
 
I'm not sure that's totally accurate, as it implies that only one buffer can be mapped at a time.  The final example given in the vertex_buffer_object spec [http://www.opengl.org/registry/specs/ARB/vertex_buffer_object.txt] demonstrates that multiple buffers can be mapped through a bind/map/bind/map sequence of calls, effectively unbinding the first buffer while leaving it mapped.  If unbinding a mapped buffer was unsafe, the spec wouldn't have such an example.  --[[User:JThoenen|JThoenen]] 03:51, 29 September 2009 (UTC)
 
I'm not sure that's totally accurate, as it implies that only one buffer can be mapped at a time.  The final example given in the vertex_buffer_object spec [http://www.opengl.org/registry/specs/ARB/vertex_buffer_object.txt] demonstrates that multiple buffers can be mapped through a bind/map/bind/map sequence of calls, effectively unbinding the first buffer while leaving it mapped.  If unbinding a mapped buffer was unsafe, the spec wouldn't have such an example.  --[[User:JThoenen|JThoenen]] 03:51, 29 September 2009 (UTC)
 +
 +
: Fixed. [[User:Alfonse|Alfonse]] 22:48, 29 September 2009 (UTC)

Revision as of 18:48, 29 September 2009

Unbinding mapped buffers

"While a buffer is mapped, you cannot do anything to it. Do not call any OpenGL function that would cause OpenGL to write to or read from that buffer. Doing so can have unfortunate consequences. Most important of all, do not unbind the buffer while it is mapped. It's OK to do these things before you map the buffer, but not while it is mapped."

I'm not sure that's totally accurate, as it implies that only one buffer can be mapped at a time. The final example given in the vertex_buffer_object spec [1] demonstrates that multiple buffers can be mapped through a bind/map/bind/map sequence of calls, effectively unbinding the first buffer while leaving it mapped. If unbinding a mapped buffer was unsafe, the spec wouldn't have such an example. --JThoenen 03:51, 29 September 2009 (UTC)

Fixed. Alfonse 22:48, 29 September 2009 (UTC)