From: José Fonseca Date: Thu, 30 Apr 2009 11:24:08 +0000 (+0100) Subject: wgl: Include alpha bits in pixel format's cColorBits field. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d075cb4fc8c130f2e8f40356e7872fcc7ce3dcd1;p=mesa.git wgl: Include alpha bits in pixel format's cColorBits field. --- diff --git a/src/gallium/state_trackers/wgl/shared/stw_pixelformat.c b/src/gallium/state_trackers/wgl/shared/stw_pixelformat.c index 9e642cbdd48..8d6955f3903 100644 --- a/src/gallium/state_trackers/wgl/shared/stw_pixelformat.c +++ b/src/gallium/state_trackers/wgl/shared/stw_pixelformat.c @@ -158,7 +158,7 @@ stw_pixelformat_add( pfi->pfd.iPixelType = PFD_TYPE_RGBA; - pfi->pfd.cColorBits = color->bits.red + color->bits.green + color->bits.blue; + pfi->pfd.cColorBits = color->bits.red + color->bits.green + color->bits.blue + color->bits.alpha; pfi->pfd.cRedBits = color->bits.red; pfi->pfd.cRedShift = color->shift.red; pfi->pfd.cGreenBits = color->bits.green;