wgl: Include alpha bits in pixel format's cColorBits field.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 30 Apr 2009 11:24:08 +0000 (12:24 +0100)
committerKeith Whitwell <keithw@vmware.com>
Fri, 8 May 2009 13:57:26 +0000 (14:57 +0100)
src/gallium/state_trackers/wgl/shared/stw_pixelformat.c

index 9e642cbdd48f2f16ed4f05b576d8bc3ac063c221..8d6955f3903b725a5d548cda109c2801e16c18bd 100644 (file)
@@ -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;