From be64167fea3c74447ed3c5116b97473676c25b29 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 11 Feb 2010 09:20:50 -0800 Subject: [PATCH] glamor: Don't try to CopyArea from a Solid source picture. Fixes failure with rendercheck. --- glamor/glamor_render.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/glamor/glamor_render.c b/glamor/glamor_render.c index f432b5f29..0f4f4c0af 100644 --- a/glamor/glamor_render.c +++ b/glamor/glamor_render.c @@ -406,6 +406,9 @@ glamor_composite_with_copy(CARD8 op, { RegionRec region; + if (!source->pDrawable) + return FALSE; + if (!compatible_formats(op, dest, source)) return FALSE;