https://bugs.winehq.org/show_bug.cgi?id=48898
--- Comment #13 from Henri Verbeet hverbeet@gmail.com --- (In reply to Anastasius Focht from comment #12)
The crash is not related to opengl32 exports/ordering this bug is about.
To me it looks like bug 18490 ("Multiple games fail to set pixel format on D3D device context created on desktop window (Empire: Total War, Napoleon: Total War, Utopia City)") but for GL device context on the desktop window.
According to online information it's not allowed to do any rendering using this context but enough to call functions like glGetString() etc.
Maybe some of the Wine graphics folks could weigh in with an opinion if this limitation is already known / tracked in a bug?
I'm not aware of an existing bug report for this issue, no. It does strike me as similar to bug 36506 though, and it would not particularly surprise me if wglGetProcAddress() is supposed to return results consistent with GL_EXTENSIONS/GL_VERSION here, even without a current GL context.
I seem to recall having established in the context of bug 18490 that creating a GL context (or more specifically, setting a pixel format) on the desktop window is indeed supposed to fail. In any case, this seems like of of those bugs that would benefit from tests to establish what's supposed to happen.