fix typo preventing generic arrays from working with ARB_vp (bug #9952)
authorRoland Scheidegger <sroland@tungstengraphics.com>
Wed, 14 Feb 2007 19:34:52 +0000 (20:34 +0100)
committerRoland Scheidegger <sroland@tungstengraphics.com>
Wed, 14 Feb 2007 19:36:29 +0000 (20:36 +0100)
src/mesa/vbo/vbo_exec_array.c

index 7ea55470acb6f8d3d63b9d1368bbdd44014f2f40..1e4c310203beec335762ae9412326c16c5e8c6cc 100644 (file)
@@ -196,7 +196,7 @@ static void recalculate_input_bindings( GLcontext *ctx )
       }
 
       for (i = 0; i < 16; i++) {
-        if (exec->array.generic_array[0]->Enabled)
+        if (exec->array.generic_array[i]->Enabled)
            inputs[VERT_ATTRIB_GENERIC0 + i] = exec->array.generic_array[i];
         else
            inputs[VERT_ATTRIB_GENERIC0 + i] = &vbo->generic_currval[i];