xf86-video-intel: uxa/uxa-render.c

Eric Anholt anholt at kemper.freedesktop.org
Tue Jun 30 19:57:09 PDT 2009


 uxa/uxa-render.c |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 1e4784bf26e3c154f5673f7b5add3ef7af3b1474
Author: Eric Anholt <eric at anholt.net>
Date:   Tue Jun 30 19:52:36 2009 -0700

    uxa: Fix segfault on source-only picture usage with FallbackDebug.
    
    Bug #22107.

diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c
index 2d81ac4..33af636 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:


More information about the xorg-commit mailing list