From 099ef348c6f245664bd8c9a15f2ce53aaadb32aa Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 11 May 2012 17:42:49 +0900 Subject: [PATCH] Advance the vertex attrib index. Disabling the array right after enabling it was causing things to just not work :P --- libs/video/renderer/glsl/glsl_iqm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/video/renderer/glsl/glsl_iqm.c b/libs/video/renderer/glsl/glsl_iqm.c index 6d8b6c524..d13015ad1 100644 --- a/libs/video/renderer/glsl/glsl_iqm.c +++ b/libs/video/renderer/glsl/glsl_iqm.c @@ -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,