From d9894ede02d13735c62da3e0ace9e9c647e2956a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 24 Jan 2018 13:31:11 -0700 Subject: vbo: s/[0]/[VERT_ATTRIB_POS]/ in recalculate_input_bindings() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Mathias Fröhlich --- src/mesa/vbo/vbo_exec_array.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3