Ken Thomases ken@codeweavers.com writes:
Well, it doesn't make much sense for user32 to know the particular pixel format, either. There's not a single pixel format for each window. WGL and D3D can use separate formats. That's at the center of what I'm doing.
A change to use a boolean flag instead of a pixel format ID would be as complicated for user32 as this patch and would make the driver work more complicated.
It's already treated as a flag as you noted, so I don't see why you'd need to change anything.
It seems to me that this is purely a practical matter. We need user32 to behave differently when there's any GL surface(s) than when there are none. Something has to keep count and it seems simplest to track the count in user32.
Surely the driver already knows if there are surfaces, I don't see why you need a count at all, much less in user32.