From 1f1c21772ae0dd10a93cd31ab81bf563802b7b2d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 3 Nov 2016 11:31:07 +0000 Subject: [PATCH] Added check against binding type of array to decide whether it's appropriate to assign array to VBO. --- 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 779e8cd81..244bf25a2 100644 --- a/src/osg/Geometry.cpp +++ b/src/osg/Geometry.cpp @@ -445,7 +445,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()) {