From: Brian Date: Fri, 6 Apr 2007 21:45:11 +0000 (-0600) Subject: for evaluators, loop to VBO_ATTRIB_TEX7, not VBO_ATTRIB_INDEX. See bug 10543 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ae55d5322c9cff61f61e8df04bb0846332cc85ce;p=mesa.git for evaluators, loop to VBO_ATTRIB_TEX7, not VBO_ATTRIB_INDEX. See bug 10543 --- diff --git a/src/mesa/vbo/vbo_exec_api.c b/src/mesa/vbo/vbo_exec_api.c index c30fd18e2d6..8d13ef9d081 100644 --- a/src/mesa/vbo/vbo_exec_api.c +++ b/src/mesa/vbo/vbo_exec_api.c @@ -390,7 +390,7 @@ static void GLAPIENTRY vbo_exec_EvalCoord1f( GLfloat u ) if (exec->eval.recalculate_maps) vbo_exec_eval_update( exec ); - for (i = 0 ; i <= VBO_ATTRIB_INDEX ; i++) { + for (i = 0; i <= VBO_ATTRIB_TEX7; i++) { if (exec->eval.map1[i].map) if (exec->vtx.active_sz[i] != exec->eval.map1[i].sz) vbo_exec_fixup_vertex( ctx, i, exec->eval.map1[i].sz ); @@ -417,7 +417,7 @@ static void GLAPIENTRY vbo_exec_EvalCoord2f( GLfloat u, GLfloat v ) if (exec->eval.recalculate_maps) vbo_exec_eval_update( exec ); - for (i = 0 ; i <= VBO_ATTRIB_INDEX ; i++) { + for (i = 0; i <= VBO_ATTRIB_TEX7; i++) { if (exec->eval.map2[i].map) if (exec->vtx.active_sz[i] != exec->eval.map2[i].sz) vbo_exec_fixup_vertex( ctx, i, exec->eval.map2[i].sz ); diff --git a/src/mesa/vbo/vbo_exec_eval.c b/src/mesa/vbo/vbo_exec_eval.c index 99a80445763..fe533290bd1 100644 --- a/src/mesa/vbo/vbo_exec_eval.c +++ b/src/mesa/vbo/vbo_exec_eval.c @@ -135,7 +135,7 @@ void vbo_exec_do_EvalCoord1f(struct vbo_exec_context *exec, GLfloat u) { GLuint attr; - for (attr = 1; attr <= VBO_ATTRIB_INDEX; attr++) { + for (attr = 1; attr <= VBO_ATTRIB_TEX7; attr++) { struct gl_1d_map *map = exec->eval.map1[attr].map; if (map) { GLfloat uu = (u - map->u1) * map->du; @@ -180,7 +180,7 @@ void vbo_exec_do_EvalCoord2f( struct vbo_exec_context *exec, { GLuint attr; - for (attr = 1; attr <= VBO_ATTRIB_INDEX; attr++) { + for (attr = 1; attr <= VBO_ATTRIB_TEX7; attr++) { struct gl_2d_map *map = exec->eval.map2[attr].map; if (map) { GLfloat uu = (u - map->u1) * map->du;