On Mon Feb 9 17:18:02 2026 +0000, Jacek Caban wrote:
We could store that in the context, it should be easy to compute in `make_context_current`. I don't know, sure we could precompute it, but I think it's nice to keep this close to the extension enumeration in `glGetString( GL_EXTENSIONS )` which it means to match (and now I see that the loops don't match exactly, although they are functionally equivalent, so I'll change that at least).
The legacy extension list also would be nice to keep in one place. I can make it an array if that's better, though for two elements it seemed okay to have separate statements. Also `WGL_EXT_extensions_string` is now a fully PE-side implemented extensions, IMO it doesn't belong anywhere on the unix side, so precomputing the extension count here seem a bit out of place, although the `get_integer` remark above makes it a reason to keep it on the unix side or we will need to introduce a similar detour on the PE side. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10019#note_129241