Added check against binding type of array to decide whether it's appropriate to assign array to VBO.
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