fix typo preventing generic arrays from working with ARB_vp (bug #9952)

This commit is contained in:
Roland Scheidegger
2007-02-14 20:34:52 +01:00
parent 83cf4ce6e4
commit 7d8ed0f5f5
+1 -1
View 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];