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-04-27 12:00:49 -0700
commit5b05a589efb23b2fc09b06e4271174d922b1ab02 (patch)
treee85ae7c48620fe6ff96749aedaf1e7baefdd967c
parente55d943126cdd3eac7dfec5f40e794f89dbf038b (diff)
format == 0 means "use default" in I830DRI2CreateBuffer
Reviewed-by: Ian Romanick <idr@freedesktop.org>
-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 4ab09c9f..70b76aed 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);
}