Fixed vertex attribute access bug
This commit is contained in:
parent
2f3c1d0ff8
commit
4ba7a58c85
@ -1669,7 +1669,7 @@ void Geometry::drawImplementation(RenderInfo& renderInfo) const
|
||||
|
||||
bool useVertexAttrib = _vertexAttribList.size() > 0 &&
|
||||
_vertexAttribList[0].array.valid() &&
|
||||
_vertexAttribList[0].indices->getNumElements();
|
||||
_vertexAttribList[0].array->getNumElements()!=0;
|
||||
|
||||
ref_ptr<DrawVertexAttrib> drawVertexAttribZero;
|
||||
if( useVertexAttrib )
|
||||
|
Loading…
Reference in New Issue
Block a user