summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Willenbrock <pierre@pirsoft.de>2009-04-25 22:58:20 +0200
committerIan Romanick <ian.d.romanick@intel.com>2009-06-12 14:04:35 -0700
commit8adfea19a3b4d95fb95fb3c9f102e16823f8ea6c (patch)
treef499302371ea7b585db5a1c9058c8eb45fb79afc
parent5ea315944ada3097fe33a14e0c1bdf1268be0308 (diff)
format == 0 means "use default" in I830DRI2CreateBuffer2.7
Reviewed-by: Ian Romanick <idr@freedesktop.org> (cherry picked from commit 5b05a589efb23b2fc09b06e4271174d922b1ab02)
-rw-r--r--src/i830_dri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_dri.c b/src/i830_dri.c
index 6fc250ca..04154cc4 100644
--- a/src/i830_dri.c
+++ b/src/i830_dri.c
@@ -1677,7 +1677,7 @@ I830DRI2CreateBuffer(DrawablePtr pDraw, unsigned int attachment,
pPixmap = (*pScreen->CreatePixmap)(pScreen,
pDraw->width,
pDraw->height,
- format,
+ (format != 0)?format:pDraw->depth,
hint);
}