wgl: Include alpha bits in pixel format's cColorBits field.
This commit is contained in:
committed by
Keith Whitwell
parent
af09ba96e9
commit
d075cb4fc8
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user