Fixed the set*Binding() methods so that they assign BufferObjects when required

This commit is contained in:
Robert Osfield 2018-04-19 19:43:14 +01:00
parent 1e32282806
commit 37e3c428b6

View File

@ -1217,6 +1217,7 @@ Geometry* osg::createTexturedQuadGeometry(const Vec3& corner,const Vec3& widthVe
} \
if (array->getBinding() == binding) return; \
array->setBinding(binding);\
if (binding==osg::Array::BIND_PER_VERTEX) addVertexBufferObjectIfRequired(array); \
if (ab==3 /*osg::Geometry::BIND_PER_PRIMITIVE*/) _containsDeprecatedData = true; \
dirtyGLObjects();