From ff779e58ab3a05358ccf41bc45a8e26bb75289e0 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 1 Sep 2016 14:34:00 +0100 Subject: [PATCH] Added check against Array::Binding to decide whether to assign a VertexBufferObject to an array or not, only assigning it when Binding is BIND_PER_VERTEX --- src/osg/Geometry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/Geometry.cpp b/src/osg/Geometry.cpp index 654fb6b49..9203848e5 100644 --- a/src/osg/Geometry.cpp +++ b/src/osg/Geometry.cpp @@ -451,7 +451,7 @@ bool Geometry::getDrawElementsList(DrawElementsList& drawElementsList) const void Geometry::addVertexBufferObjectIfRequired(osg::Array* array) { - /*if (_useVertexBufferObjects)*/ + if (/*_useVertexBufferObjects &&*/ array->getBinding()==Array::BIND_PER_VERTEX) { if (!array->getVertexBufferObject()) {