diff options
author | Andres Gomez <[email protected]> | 2018-01-29 01:35:15 +0200 |
---|---|---|
committer | Andres Gomez <[email protected]> | 2018-02-06 15:30:12 +0200 |
commit | c9325b4fa961fda24c7f3c30c153a0d3896fa64f (patch) | |
tree | ea0767d3aa9141b20c8792896a5895152fa7954a | |
parent | a5053ba27ed76f666e315de7150433c5aaaaf2c3 (diff) |
vbo: print first element of the VAO when the binding stride is 0
Cc: Mathias Fröhlich <[email protected]>
Cc: Brian Paul <[email protected]>
Signed-off-by: Andres Gomez <[email protected]>
Reviewed-by: Mathias Fröhlich <[email protected]>
-rw-r--r-- | src/mesa/vbo/vbo_exec_array.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c index 42759d58978..608ddaac47a 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); } } |