sna: Fix use before assignment
mono.sna was being used the line before it was assigned. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
a9d6f897e6
commit
9ed5f83fe7
|
|
@ -803,8 +803,8 @@ mono_trapezoids_span_converter(struct sna *sna,
|
|||
unbounded = (!sna_drawable_is_clear(dst->pDrawable) &&
|
||||
!operator_is_bounded(op));
|
||||
|
||||
if (op == PictOpClear && mono.sna->clear)
|
||||
src = mono.sna->clear;
|
||||
if (op == PictOpClear && sna->clear)
|
||||
src = sna->clear;
|
||||
|
||||
mono.sna = sna;
|
||||
if (!mono.sna->render.composite(mono.sna, op, src, NULL, dst,
|
||||
|
|
|
|||
Loading…
Reference in New Issue