Module: Mesa Branch: master Commit: d9894ede02d13735c62da3e0ace9e9c647e2956a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d9894ede02d13735c62da3e0ace9e9c647e2956a
Author: Brian Paul <bri...@vmware.com> Date: Wed Jan 24 13:31:11 2018 -0700 vbo: s/[0]/[VERT_ATTRIB_POS]/ in recalculate_input_bindings() Reviewed-by: Mathias Fröhlich <mathias.froehl...@web.de> --- src/mesa/vbo/vbo_exec_array.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c index b11da09dd1..43362db2c7 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; } _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit