[osg-users] Changing vertex color array causes crash due to null pointer in TemplateAttributeDispatch

2014-06-02 Thread Björn Blissing
Hi, We recently got a strange crash behavior in our software. We were fixing a piece of code that caused GL_ERRORS on some platforms. When we had fixed this, a new bug surfaced in a completely different part of the code base. It was code that had worked for years, but suddenly it started to

Re: [osg-users] Changing vertex color array causes crash due to null pointer in TemplateAttributeDispatch

2014-06-02 Thread Robert Osfield
Hi Bjorn, You need to set the DataVariance to DYNAMIC on the Drawable that you are modifying, setting the DataVariance on the Geode won't affect the management of threads as it's only the Drawable and StateSet leaves that make it into the rendering backend. Robert. On 2 June 2014 10:26, Björn

Re: [osg-users] Changing vertex color array causes crash due to null pointer in TemplateAttributeDispatch

2014-06-02 Thread Björn Blissing
Hi Robert, Thank you! That should have been obvious. Sometime you just need a second set of eyes to look at your code. Regards Björn -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=59621#59621 ___