[osg-users] shared VertexBufferObject question

Pecoraro, Alexander N alexander.n.pecoraro at lmco.com
Fri Sep 19 16:42:24 PDT 2008


I want to create a VertexBufferObject that is shared by several Geometry
nodes so that the number of calls to glBindBuffer() are decreased, but I
noticed that on lines 1561 - 1567 of Geometry.cpp there is some code
that automatically unbinds the vertex buffer object effectively forcing
each Geometry node to rebind the VBO each time. Why does it do this?
Isn't this preventing a shared VBO from being used in the most efficient
way possible?

 

Thanks.

 

Alex

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080919/2017fecf/attachment-0002.htm>


More information about the osg-users mailing list