Hi Michael,

On Dec 11, 2007 2:06 PM, Schmidt, Michael M <[EMAIL PROTECTED]> wrote:
> I declared the attribute exactly as you wrote.  I figured out that it was
> crashing because I still had a left-over geom->setSecondaryColorArray(new
> osg::Vec4Array);  I didn't populate the array, so the crash occurred.  It
> would be nice if the osg code checked for an empty array before trying to
> use it.

Like OpenGL the OSG doesn't do bounds checking an every call, based on
the idea that a properly set up database/application won't need bounds
checking everywhere so the overhead associated with such checks would
be a unnecessary performance penalty.  Since both OpenGL and OSG are
performance critical APIs such a policy can make a difference.

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

Reply via email to