From 37e3c428b6480ede6527ca3c2f3bd8971cc2ed8f Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 19 Apr 2018 19:43:14 +0100 Subject: [PATCH] Fixed the set*Binding() methods so that they assign BufferObjects when required --- src/osg/Geometry.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osg/Geometry.cpp b/src/osg/Geometry.cpp index a3329e585..97dd00eb2 100644 --- a/src/osg/Geometry.cpp +++ b/src/osg/Geometry.cpp @@ -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();