Mesa (master): wgl: Include alpha bits in pixel format's cColorBits field.
Keith Whitwell
keithw at kemper.freedesktop.org
Tue May 5 12:17:27 UTC 2009
Module: Mesa
Branch: master
Commit: 6b89c35c9f6557a160c8fc0c97a110d3afe4c82f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b89c35c9f6557a160c8fc0c97a110d3afe4c82f
Author: José Fonseca <jfonseca at vmware.com>
Date: Thu Apr 30 12:24:08 2009 +0100
wgl: Include alpha bits in pixel format's cColorBits field.
---
.../state_trackers/wgl/shared/stw_pixelformat.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/state_trackers/wgl/shared/stw_pixelformat.c b/src/gallium/state_trackers/wgl/shared/stw_pixelformat.c
index 9e642cb..8d6955f 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;
More information about the mesa-commit
mailing list