mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-28 07:30:22 +01:00
i915g: Fix wrong indices for LINE_LOOP case
This commit is contained in:
parent
45bb4b79f6
commit
13632e64a0
1 changed files with 2 additions and 2 deletions
|
|
@ -400,8 +400,8 @@ draw_arrays_generate_indices(struct vbuf_render *render,
|
|||
case PIPE_PRIM_LINE_LOOP:
|
||||
if (nr >= 2) {
|
||||
for (i = start + 1; i < end; i++)
|
||||
OUT_BATCH((i-0) | (i+0) << 16);
|
||||
OUT_BATCH((i-0) | ( start) << 16);
|
||||
OUT_BATCH((i-1) | (i+0) << 16);
|
||||
OUT_BATCH((i-1) | ( start) << 16);
|
||||
}
|
||||
break;
|
||||
case PIPE_PRIM_QUADS:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue