From: Brian Paul Date: Wed, 12 Aug 2009 19:16:41 +0000 (-0600) Subject: vbo: fix incorrect pointer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=855374a76a6e83cc0ad4af143b74e655e7b77d5e;p=mesa.git vbo: fix incorrect pointer --- diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c index 4fb4845f6b6..2693ae62c2e 100644 --- a/src/mesa/vbo/vbo_exec_array.c +++ b/src/mesa/vbo/vbo_exec_array.c @@ -63,7 +63,7 @@ vbo_get_minmax_index(GLcontext *ctx, switch (ib->type) { case GL_UNSIGNED_INT: { - const GLuint *ui_indices = (const GLuint *)ib->ptr; + const GLuint *ui_indices = (const GLuint *)indices; GLuint max_ui = ui_indices[count-1]; GLuint min_ui = ui_indices[0]; for (i = 0; i < count; i++) {