diff options
author | Brian Paul <[email protected]> | 2018-01-24 13:31:11 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-01-29 08:35:14 -0700 |
commit | d9894ede02d13735c62da3e0ace9e9c647e2956a (patch) | |
tree | fa7c95932c2f12e7edda0e3eea8aa5a3268f2ee6 /src/mesa/vbo | |
parent | 48a6ab472a4759c93cf5c84e6e123704c8240135 (diff) |
vbo: s/[0]/[VERT_ATTRIB_POS]/ in recalculate_input_bindings()
Reviewed-by: Mathias Fröhlich <[email protected]>
Diffstat (limited to 'src/mesa/vbo')
-rw-r--r-- | src/mesa/vbo/vbo_exec_array.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |