sna: Check after filtering points before submitting boxes to be drawn
As we clip the points when converting them into GPU boxes, check that we have something to draw before submitting the commands. Reported-by: Ian Gay <gay@sfu.ca> References: https://bugs.freedesktop.org/show_bug.cgi?id=86075 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
9ea242c275
commit
0267f5902d
|
|
@ -7251,7 +7251,8 @@ sna_poly_point__gpu(DrawablePtr drawable, GCPtr gc,
|
|||
b++;
|
||||
}
|
||||
} while (--nbox);
|
||||
fill.boxes(data->sna, &fill, box, b - box);
|
||||
if (b != box)
|
||||
fill.boxes(data->sna, &fill, box, b - box);
|
||||
}
|
||||
fill.done(data->sna, &fill);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue