summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo_exec_array.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/vbo/vbo_exec_array.c')
-rw-r--r--src/mesa/vbo/vbo_exec_array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c
index 608ddaac47a..74b9a1b0ebd 100644
--- a/src/mesa/vbo/vbo_exec_array.c
+++ b/src/mesa/vbo/vbo_exec_array.c
@@ -287,7 +287,7 @@ print_draw_arrays(struct gl_context *ctx,
float *f = (float *) (p + offset);
int *k = (int *) f;
int i = 0;
- int n = (count * binding->Stride) / 4;
+ int n = (count - 1) * (binding->Stride / 4) + array->Size;
if (n > 32)
n = 32;
printf(" Data at offset %d:\n", offset);