Hi Karl,

On 13 September 2012 12:30, Cary, Karl A. <[email protected]> wrote:
> It is crashing in the glDrawElements call, which I can't step in to. All
> the data passed in looks valid in the debugger.

This suggest to me that one of the vertex attribute arrays has been
left enabled and the OpenGL driver is attempting to read from it past
the end of the data that had previous set up for that array.  For
instance, perhaps the colour array is left on.  Have a look at the
osg::Geometry::drawImplementation(osg::RenderInfo&) method, it has a
code block where it does:

    state.lazyDisablingOfVertexAttributes();

    // then does all the state.setVertexPointer(..) that are required

    state.applyDisablingOfVertexAttributes();

    // dispatch primitive data

Perhaps something like this would work for your app.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to