9 Feb
2026
9 Feb
'26
5:18 p.m.
Jacek Caban (@jacek) commented about dlls/opengl32/wgl.c:
case GL_MINOR_VERSION: *data = ctx->base.minor_version; return; + case GL_NUM_EXTENSIONS: + { + UINT count = 0; + for (UINT i = 0; i < ARRAY_SIZE(all_extensions); i++) + { + if (strncmp( all_extensions[i].name, "GL_", 3 )) continue; + if (ctx->base.extensions[i]) count++; + } + if (ctx->base.extensions[WGL_EXT_extensions_string]) count++; + if (ctx->base.extensions[WGL_EXT_swap_control]) count++;
We could store that in the context, it should be easy to compute in `make_context_current`. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10019#note_129236