Hi Julien, Could you post the whole modified file as copy and pasting modification isn't reliable.
Thanks, Robert. On 12 August 2015 at 22:01, Julien Valentin <[email protected]> wrote: > Hi, > Serializing custom geometry i ran into a crash due to a > setVertexAttribArrayList(array) with array containing NULL vertexAttrib. > I added a test in order to avoid it > > > Code: > void Geometry::setVertexAttribArrayList(const ArrayList& arrayList) > { > _vertexAttribList = arrayList; > > dirtyDisplayList(); > > if (_useVertexBufferObjects) > { > for(ArrayList::iterator itr = _vertexAttribList.begin(); > itr != _vertexAttribList.end(); > ++itr) > { > if(itr->get())//ADDED > addVertexBufferObjectIfRequired(itr->get()); > } > } > } > > > > > Thank you! > > Cheers, > Julien > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=64749#64749 > > > > > > _______________________________________________ > osg-submissions mailing list > [email protected] > > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org >
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
