summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2008-05-01 15:10:52 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2008-05-01 15:10:52 +0200
commit3b8d53452cd6c74d32d7759964a7cd9ee775f161 (patch)
tree7d940904b452aea672646eee40eb917c905808e9
parent01c61f3d972fc2f4e5bb536dd00d8b6bbeb0fb3d (diff)
EXA: Fall back in CompositeRects if the driver can't accelerate Composite.
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=15780 .
-rw-r--r--exa/exa_render.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/exa/exa_render.c b/exa/exa_render.c
index 43b0029e5..b480c6d05 100644
--- a/exa/exa_render.c
+++ b/exa/exa_render.c
@@ -345,6 +345,9 @@ exaTryDriverCompositeRects(CARD8 op,
struct _Pixmap scratch;
ExaMigrationRec pixmaps[2];
+ if (!pExaScr->info->PrepareComposite)
+ return -1;
+
pSrcPix = exaGetDrawablePixmap(pSrc->pDrawable);
pSrcExaPix = ExaGetPixmapPriv(pSrcPix);