mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-14 02:30:29 +01:00
fix silly mistakes
This commit is contained in:
parent
fe586f8612
commit
22323af525
2 changed files with 2 additions and 4 deletions
|
|
@ -28,7 +28,7 @@ static void FUNC(struct draw_pt_front_end *frontend,
|
|||
for (j = 0; j + first <= count; j += i) {
|
||||
unsigned end = MIN2(FETCH_MAX, count - j);
|
||||
end -= (end % incr);
|
||||
for (i = 0; i < count; i++) {
|
||||
for (i = 0; i < end; i++) {
|
||||
POINT(varray, i + 0);
|
||||
}
|
||||
i = end;
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ static void FUNC(struct draw_pt_front_end *frontend,
|
|||
else {
|
||||
for (j = 0; j + first <= count;) {
|
||||
unsigned end = MIN2(FETCH_MAX, count - j);
|
||||
//end -= (end % incr);
|
||||
end -= (end % incr);
|
||||
for (i = 0; i+2 < end; i++) {
|
||||
TRIANGLE(varray, DRAW_PIPE_RESET_STIPPLE | DRAW_PIPE_EDGE_FLAG_ALL,
|
||||
i + 0 + (i&1), i + 1 - (i&1), i + 2);
|
||||
|
|
@ -93,8 +93,6 @@ static void FUNC(struct draw_pt_front_end *frontend,
|
|||
fetch_init(varray, end);
|
||||
varray_flush(varray);
|
||||
j += end;
|
||||
if (j <= count)
|
||||
j -= incr;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue