summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann <ssp@redhat.com>2012-07-27 14:08:44 -0400
committerSøren Sandmann Pedersen <ssp@redhat.com>2012-08-23 17:34:32 -0400
commit8081f21a6d9057c81d835511101ecc6664668861 (patch)
tree3f341d27c1dbfaf0f0a62e2d15aec1e00b8f812a
parentfab769258da86fedd7c2b090076ef97688aa0f9d (diff)
NULL pictures can be accelerated
-rw-r--r--src/qxl_driver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index 9a995f6..0474ffc 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -1314,6 +1314,9 @@ qxl_done_copy (PixmapPtr dest)
static Bool
can_accelerate_picture (PicturePtr pict)
{
+ if (!pict)
+ return TRUE;
+
if (pict->format != PICT_a8r8g8b8 &&
pict->format != PICT_x8r8g8b8 &&
pict->format != PICT_a8)