Cc: Mathias Fröhlich <mathias.froehl...@web.de> Cc: Brian Paul <bri...@vmware.com> Signed-off-by: Andres Gomez <ago...@igalia.com> --- src/mesa/vbo/vbo_exec_array.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c index d990fdf7a8d..aa5f3cbf23e 100644 --- a/src/mesa/vbo/vbo_exec_array.c +++ b/src/mesa/vbo/vbo_exec_array.c @@ -286,14 +286,15 @@ print_draw_arrays(struct gl_context *ctx, _mesa_vertex_attrib_address(array, binding); float *f = (float *) (p + offset); int *k = (int *) f; - int i; + int i = 0; int n = (count * binding->Stride) / 4; if (n > 32) n = 32; printf(" Data at offset %d:\n", offset); - for (i = 0; i < n; i++) { + do { printf(" float[%d] = 0x%08x %f\n", i, k[i], f[i]); - } + i++; + } while (i < n); ctx->Driver.UnmapBuffer(ctx, bufObj, MAP_INTERNAL); } } -- 2.15.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev