From: Xiang, Haihao Date: Thu, 20 Sep 2007 09:37:04 +0000 (+0800) Subject: fix memory access error in vbo_bind_vertex_list X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8fc1a6808d88bd1dd641751f2f50c867a05dcc07;p=mesa.git fix memory access error in vbo_bind_vertex_list --- diff --git a/src/mesa/vbo/vbo_save_draw.c b/src/mesa/vbo/vbo_save_draw.c index da7bc765b7e..ee6df226054 100644 --- a/src/mesa/vbo/vbo_save_draw.c +++ b/src/mesa/vbo/vbo_save_draw.c @@ -131,7 +131,7 @@ static void vbo_bind_vertex_list( GLcontext *ctx, break; } - for (attr = 0; attr < VBO_ATTRIB_MAX; attr++) { + for (attr = 0; attr < VERT_ATTRIB_MAX; attr++) { GLuint src = map[attr]; if (node->attrsz[src]) {