On Thu Feb 29 19:21:00 2024 +0000, Rémi Bernon wrote:
Is that really the case? It doesn't look like so in the other drivers?
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?