summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2003-10-22 07:08:02 +0000
committerKeith Packard <keithp@keithp.com>2003-10-22 07:08:02 +0000
commita7d61f290c687f28ad7b603400f7df2dfd2c5d0e (patch)
tree19614cba9c4a8809be4e52b56de9b11e5c2c4c49
parentf2f834700118f4289bf38ceedd2acd9289b16141 (diff)
Don't start pixmaps differing from root format in off-screen memory
-rw-r--r--hw/kdrive/src/kaa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/kdrive/src/kaa.c b/hw/kdrive/src/kaa.c
index b4891fa03..ff6be8a35 100644
--- a/hw/kdrive/src/kaa.c
+++ b/hw/kdrive/src/kaa.c
@@ -278,7 +278,8 @@ kaaCreatePixmap(ScreenPtr pScreen, int w, int h, int depth)
pKaaPixmap->score = 0;
pKaaPixmap->area = NULL;
- if ((pPixmap->devKind * h) >= MIN_OFFPIX_SIZE)
+ if (depth == pScreen->rootDepth &&
+ (pPixmap->devKind * h) >= MIN_OFFPIX_SIZE)
kaaPixmapAllocArea (pPixmap);
return pPixmap;
}