Hello Christian,

Quoting Christian Muschick <[EMAIL PROTECTED]>:
> My last request concerning this question didn't get any reply, so let me
> try this reformulated version:
>...
>          osg::Array* array = *vitr;
>          if (!array->getVertexBufferObject()) vbo =
> array->getVertexBufferObject(); ///< This will only set vbo to NULL!?
>      }
>
>      if (!vbo) vbo = new osg::VertexBufferObject;
> }
>
> In the loop, vbo will never get a value different from the null-pointer.
> Is this on purpose? Did I miss something entirely?

This certainly looks like a type to me too (copy-and-paste anti-pattern).
I assume it should read 'if(array->getVertexBufferObject())...' so that if the
array has a VBO associated it's used.

But I guess in the end Robert has to check that.
/ulrich
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to