mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
draw: Fix typo resulting from bad regular expression in index bias addition.
This commit is contained in:
parent
dfadf5a579
commit
f1d3f42c47
1 changed files with 4 additions and 4 deletions
|
|
@ -78,16 +78,16 @@ static void FUNC( struct draw_pt_front_end *frontend,
|
|||
TRIANGLE( vcache,
|
||||
DRAW_PIPE_RESET_STIPPLE | DRAW_PIPE_EDGE_FLAG_ALL,
|
||||
get_elt(elts, i + 0) + elt_bias,
|
||||
get_elt(elts, i + 1 + (i&1) + elt_bias),
|
||||
get_elt(elts, i + 2 - (i&1) + elt_bias));
|
||||
get_elt(elts, i + 1 + (i&1)) + elt_bias,
|
||||
get_elt(elts, i + 2 - (i&1)) + elt_bias);
|
||||
}
|
||||
}
|
||||
else {
|
||||
for (i = 0; i+2 < count; i++) {
|
||||
TRIANGLE( vcache,
|
||||
DRAW_PIPE_RESET_STIPPLE | DRAW_PIPE_EDGE_FLAG_ALL,
|
||||
get_elt(elts, i + 0 + (i&1) + elt_bias),
|
||||
get_elt(elts, i + 1 - (i&1) + elt_bias),
|
||||
get_elt(elts, i + 0 + (i&1)) + elt_bias,
|
||||
get_elt(elts, i + 1 - (i&1)) + elt_bias,
|
||||
get_elt(elts, i + 2 ) + elt_bias);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue