Merge branch 'OpenSceneGraph-3.4' of https://github.com/openscenegraph/OpenSceneGraph into OpenSceneGraph-3.4
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user