sna: Fix use before assignment
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Nov 2013 12:09:35 +0000 (12:09 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Nov 2013 12:09:35 +0000 (12:09 +0000)
mono.sna was being used the line before it was assigned.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_trapezoids_mono.c

index 40d0381..dd629b6 100644 (file)
@@ -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,