On Fri Mar 1 12:17:13 2024 +0000, Alexandros Frantzis wrote:
The [MSDN documentation](https://learn.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-pixelfo...) is very explicit about the meaning of this field (emphasis mine):
`cColorBits`
Specifies the number of color bitplanes in each color buffer. For RGBA
pixel types, it is the size of the color buffer, **excluding the alpha bitplanes**. For color-index pixels, it is the size of the color-index buffer. I checked the history of the respective line in winex11 and couldn't find an explicit justification for diverging from the specification. Perhaps the actual Win32 behavior is diverging from the spec? Or perhaps that's something particular about the use of this field in OpenGL? Or could it be an oversight that's gone unnoticed because it doesn't really matter in most cases?
It's probably driver dependent, and the documentation being simply incorrect. See for instance this run of wglinfo on actual Windows machines with physical GPUs: https://testbot.winehq.org/JobDetails.pl?Key=143604&f101=exe64.report&am...