From: Brian Paul Date: Wed, 24 Jan 2018 20:31:11 +0000 (-0700) Subject: vbo: s/[0]/[VERT_ATTRIB_POS]/ in recalculate_input_bindings() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d9894ede02d13735c62da3e0ace9e9c647e2956a;p=mesa.git vbo: s/[0]/[VERT_ATTRIB_POS]/ in recalculate_input_bindings() Reviewed-by: Mathias Fröhlich --- diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c index b11da09dd1c..43362db2c7c 100644 --- a/src/mesa/vbo/vbo_exec_array.c +++ b/src/mesa/vbo/vbo_exec_array.c @@ -369,11 +369,11 @@ recalculate_input_bindings(struct gl_context *ctx) */ if (ctx->API == API_OPENGL_COMPAT) { if (array[VERT_ATTRIB_GENERIC0].Enabled) - inputs[0] = &vertexAttrib[VERT_ATTRIB_GENERIC0]; + inputs[VERT_ATTRIB_POS] = &vertexAttrib[VERT_ATTRIB_GENERIC0]; else if (array[VERT_ATTRIB_POS].Enabled) - inputs[0] = &vertexAttrib[VERT_ATTRIB_POS]; + inputs[VERT_ATTRIB_POS] = &vertexAttrib[VERT_ATTRIB_POS]; else { - inputs[0] = &vbo->currval[VBO_ATTRIB_GENERIC0]; + inputs[VERT_ATTRIB_POS] = &vbo->currval[VBO_ATTRIB_GENERIC0]; const_inputs |= VERT_BIT_POS; }