Advance the vertex attrib index.

Disabling the array right after enabling it was causing things to just not
work :P
This commit is contained in:
Bill Currie 2012-05-11 17:42:49 +09:00
parent d1d4c6142c
commit 099ef348c6

View file

@ -177,7 +177,7 @@ set_arrays (iqm_t *iqm)
Sys_Error ("iqm: array order bogus");
while (j < va->type)
qfeglDisableVertexAttribArray (vertex_attribs[j++].attr->location);
attr = &vertex_attribs[j];
attr = &vertex_attribs[j++];
qfeglEnableVertexAttribArray (attr->attr->location);
qfeglVertexAttribPointer (attr->attr->location, attr->size,
attr->type, attr->normalized, iqm->stride,