diff options
author | José Fonseca <[email protected]> | 2010-04-19 18:14:04 +0200 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-04-19 18:14:04 +0200 |
commit | 2197fac47cb1f87387820678357cc67c9a2536b9 (patch) | |
tree | a23d704cdd4bcc8179a81bf4251b8039d43b4be4 /src/gallium/auxiliary/draw/draw_pt.c | |
parent | 857c7c7ca266df4be8d4c725e056f69d4ee96624 (diff) |
draw: Implement index bias.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt.c b/src/gallium/auxiliary/draw/draw_pt.c index 43f6c5650a0..aa1f7064a3a 100644 --- a/src/gallium/auxiliary/draw/draw_pt.c +++ b/src/gallium/auxiliary/draw/draw_pt.c @@ -111,6 +111,7 @@ draw_pt_arrays(struct draw_context *draw, frontend->run(frontend, draw_pt_elt_func(draw), draw_pt_elt_ptr(draw, start), + draw->pt.user.eltBias, count); frontend->finish( frontend ); @@ -222,8 +223,11 @@ draw_print_arrays(struct draw_context *draw, uint prim, int start, uint count) break; default: assert(0); + return; } - debug_printf("Element[%u + %u] -> Vertex %u:\n", start, i, ii); + ii += draw->pt.user.eltBias; + debug_printf("Element[%u + %u] + %i -> Vertex %u:\n", start, i, + draw->pt.user.eltBias, ii); } else { /* non-indexed arrays */ |