Rémi Bernon (@rbernon) commented about dlls/opengl32/unix_wgl.c:
const struct registry_entry entry = {.name = name}, *found; struct opengl_funcs *funcs = teb->glTable; const void **func_ptr; + struct context *ctx;
/* Without an active context opengl32 doesn't know to what * driver it has to dispatch wglGetProcAddress. */ - if (!get_current_context( teb, NULL, NULL )) + if (!(ctx = get_current_context( teb, NULL, NULL ))) { WARN( "No active WGL context found\n" ); return (void *)-1; }
Arguably I think this is incorrect in the first place, unlike Vulkan, GL functions may be queried without a context and they get dispatched when called instead. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9250#note_119308