When using print_draw_arrays for debugging, we were printing an "n"
amount of vertex but that meant not to print all the size in the "n"
vertex, depending on the stride used.
Now we print the whole size in the "n" vertex.
Cc: Mathias Fröhlich <mathias.froehlich@web.de>
Cc: Brian Paul <brianp@vmware.com>
Signed-off-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de>
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);