From 3e987ea670aadefeb3a6ad05d9a39dd7902985f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Thu, 18 Oct 2007 17:44:14 +0200 Subject: [PATCH] EXA: Don't attempt to move in pixmaps that can't be accelerated. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=12815 . (Related to commit 5d74416740de883b7ef0994afea4bbd4d3901be0 on master.) --- exa/exa_migration.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/exa/exa_migration.c b/exa/exa_migration.c index 70d8e1235..ff810411c 100644 --- a/exa/exa_migration.c +++ b/exa/exa_migration.c @@ -319,6 +319,10 @@ exaMoveInPixmap (PixmapPtr pPixmap) if (pPixmap->drawable.bitsPerPixel < 8) return; + if (pPixmap->drawable.width > pExaScr->info->maxX || + pPixmap->drawable.height > pExaScr->info->maxY) + return; + if (pExaPixmap->area == NULL) { pExaPixmap->area = exaOffscreenAlloc (pScreen, pExaPixmap->fb_size,