diff options
-rw-r--r-- | src/i830_dri.c | 2 |
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); } |