diff options
author | Eric Anholt <eric@anholt.net> | 2009-06-30 19:52:36 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-06-30 19:54:23 -0700 |
commit | 1e4784bf26e3c154f5673f7b5add3ef7af3b1474 (patch) | |
tree | 56ac9b93f3527019ab3c3e98622e40b5671f1289 /uxa | |
parent | 7e79fc8aa93df4df37c25cf37ee0ec6c7caca1d9 (diff) |
uxa: Fix segfault on source-only picture usage with FallbackDebug.
Bug #22107.
Diffstat (limited to 'uxa')
-rw-r--r-- | uxa/uxa-render.c | 5 |
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: |