Hello.
I was getting GL_INVALID_OPERATION on a glDrawArrays() call in
Drawable::compileGLObjects() / Geometry::drawImplementation(). I
traced it down to GLObjectsVisitor::apply(osg::Geode& node) which
does:
apply(*drawable);
if (drawable->getStateSet())
{
apply(*(drawable->getStateSet()));
}
... so because the drawable is drawn before it's stateset was applied
an invalid vertex program was used (which caused the
GL_INVALID_OPERATION error). Changing the order there fixed the
problem for me.
I checked trunk - the problem is still there.
Cheers,
Felix
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org