On Mon Feb 23 18:01:02 2026 +0000, Jacek Caban wrote:
I think you meant to initialize it only once. It's also a weird place to do that, why not do it in the `wglGetExtensionsString*` functions instead? Because `wglGetProcAddress` ensures we have a current context, from which we can get the WGL extensions that are implemented on the unix side, whereas `wglGetExtensionsString*` doesn't require a current context and we wouldn't be able to get it there.
I'm not completely sure this should be initialized only once. Right now it doesn't make any difference because the only thing that can create a context is the unix side bridge, but if we're considering future evolutions with multiple ICDs (I'm thinking it would be nice to have an ICD loader so we can optionally load PE zink instead), this might need to be done differently. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10019#note_130323