Fix really crappy bug after vertex array refactor commit, it used vertex

arrays offset when VBOs were active and could cause a crash in driver.

Thanks to Dalai again for finding this out.
This commit is contained in:
2014-12-03 19:22:40 +01:00
parent 0762451e86
commit 87471874a9

View File

@@ -1132,7 +1132,7 @@ static void cdDM_drawMappedFacesGLSL(DerivedMesh *dm,
}
if (numdata != 0) {
elementsize = GPU_attrib_element_size(datatypes, numdata);
buffer = GPU_buffer_alloc(elementsize * dm->drawObject->tot_triangle_point, true);
buffer = GPU_buffer_alloc(elementsize * dm->drawObject->tot_triangle_point, false);
if (buffer == NULL) {
GPU_buffer_unbind();
buffer = GPU_buffer_alloc(elementsize * dm->drawObject->tot_triangle_point, true);