Decouple vbo validation from LLDrawInfo. Such required vbo's to be initialized before drawinfo creation/modification, which is no longer the case with llvovolume. ('RenderDelayVBUpdate'[although removed in Singu] also fails the same assumption.)

This commit is contained in:
Shyotl
2014-05-15 18:44:10 -05:00
parent c3771e2fd5
commit fdcf2eda5a
4 changed files with 18 additions and 3 deletions

View File

@@ -777,6 +777,11 @@ void LLGrassPartition::getGeometry(LLSpatialGroup* group)
}
}
if(vertex_count > 0)
{
buffer->validateRange(0, vertex_count - 1, index_count, 0);
}
buffer->flush();
mFaceList.clear();
}