diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-19 12:09:35 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-19 12:09:35 +0000 |
commit | 9ed5f83fe7ec71faf40147271aef1cf4a5a38329 (patch) | |
tree | 965781af91c6705f832acfa8d0c9cc6b1ebf3359 /src | |
parent | a9d6f897e6d6dc388de24f7b49ba79bf1f6125c3 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna_trapezoids_mono.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_trapezoids_mono.c b/src/sna/sna_trapezoids_mono.c index 40d03819..dd629b6b 100644 --- a/src/sna/sna_trapezoids_mono.c +++ b/src/sna/sna_trapezoids_mono.c @@ -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, |