From: Roland Scheidegger Date: Wed, 14 Feb 2007 19:34:52 +0000 (+0100) Subject: fix typo preventing generic arrays from working with ARB_vp (bug #9952) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d8ed0f5f5960a492734cb415b8a85ef4ad79846;p=mesa.git fix typo preventing generic arrays from working with ARB_vp (bug #9952) --- diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c index 7ea55470acb..1e4c310203b 100644 --- a/src/mesa/vbo/vbo_exec_array.c +++ b/src/mesa/vbo/vbo_exec_array.c @@ -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];