Hi robert, I also tested this issue outside of osg to be sure it is a problem somewhere in hardware or the driver. There I created the following "scene":
I used a triangle and a quad consisting of two triangles. All the geometry (7 points) are stored in the first vbo, I only used vertex data, no further attributes as colors,texcoords,... . Then I created a second VBO using two arrays for element index data. It is important to use the datatype GL_UNSIGNED_SHORT as the GL_UNSIGNED_INT data automatically satisfies the platform requirement. Furthermore one of the arrays must contain an odd number of elements, the triangle mentioned before fulfills the condition . With this "scene" the call of glBufferSubData led to a crash on my hardware. I'm sorry that I don't have a simple osg model to reproduce this issue. I came across the error in osg with a more complex model and tracked down the error with a minimal example outside the osg. Afterwards I fixed the problem as described and the complex model inside the osg worked as expected. Cheers, Johannes ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=34140#34140 _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
