Hi Aurelien,

I've finally tracked down the bug to an template implementation that
didn't get amended properly when I removed all the index array
support.  The fix was simply:

$ svn diff
Index: ArrayDispatchers.cpp
===================================================================
--- ArrayDispatchers.cpp        (revision 13561)
+++ ArrayDispatchers.cpp        (working copy)
@@ -70,7 +70,7 @@
         TemplateTargetAttributeDispatch(I target, F functionPtr,
unsigned int stride):
             _functionPtr(functionPtr), _target(target),
_stride(stride), _array(0) {}

-        virtual void assign(const GLvoid* array, const IndexArray*)
+        virtual void assign(const GLvoid* array)
         {
             _array = reinterpret_cast<const T*>(array);
         }

It's taken my three hours to spot the error, arggg..... it's a relief
to finally get it though.  Not quite sure how things were still
working at your end given this error.

I will now move on to merging your changes.

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

Reply via email to