File moblin-uxa-Fix-segfault-on-source-only-picture-usage.patch of Package xorg-x11-driver-video-intel-legacy

From 1e4784bf26e3c154f5673f7b5add3ef7af3b1474 Mon Sep 17 00:00:00 2001
From: Eric Anholt <eric@anholt.net>
Date: Tue, 30 Jun 2009 19:52:36 -0700
Subject: uxa: Fix segfault on source-only picture usage with FallbackDebug.

Bug #22107.
---
 uxa/uxa-render.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Index: xf86-video-intel-2.8.0/uxa/uxa-render.c
===================================================================
--- xf86-video-intel-2.8.0.orig/uxa/uxa-render.c
+++ xf86-video-intel-2.8.0/uxa/uxa-render.c
@@ -49,6 +49,11 @@ static void uxa_composite_fallback_pict_
 	return;
     }
 
+    if (pict->pDrawable == NULL) {
+	snprintf(string, n, "source-only");
+	return;
+    }
+
     switch (pict->format)
     {
     case PICT_a8r8g8b8:
openSUSE Build Service is sponsored by