summaryrefslogtreecommitdiff
path: root/uxa
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-06-30 19:52:36 -0700
committerEric Anholt <eric@anholt.net>2009-06-30 19:54:23 -0700
commit1e4784bf26e3c154f5673f7b5add3ef7af3b1474 (patch)
tree56ac9b93f3527019ab3c3e98622e40b5671f1289 /uxa
parent7e79fc8aa93df4df37c25cf37ee0ec6c7caca1d9 (diff)
uxa: Fix segfault on source-only picture usage with FallbackDebug.
Bug #22107.
Diffstat (limited to 'uxa')
-rw-r--r--uxa/uxa-render.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c
index 2d81ac44..33af6364 100644
--- a/uxa/uxa-render.c
+++ b/uxa/uxa-render.c
@@ -44,6 +44,11 @@ static void uxa_composite_fallback_pict_desc(PicturePtr pict, char *string, int
return;
}
+ if (pict->pDrawable == NULL) {
+ snprintf(string, n, "source-only");
+ return;
+ }
+
switch (pict->format)
{
case PICT_a8r8g8b8: