http://bugs.winehq.org/show_bug.cgi?id=12191
--- Comment #5 from BlackStar BurnSpamAddress@gmail.com 2008-03-24 09:34:37 --- I'm trying to understand the interface. Is it something like the following? - Program calls DirectDrawCreate - Wine calls WineDirect3DCreate (in wined3d.c) - ChoosePixelFormat is called (gdi32.c?) - X11DRV_ChoosePixelFormat is called (winex11.drv/??.c)
I guess I fail to see how wglChoosePixelFormat comes into play (it's not visible in the stacktraces above).
I'm also a little confused on wgl- and gdi- ChoosePixelFormat. It looks like there are three ChoosePixelFormat functions: undercorated, wgl and gdi (internal), but it isn't entirely clear which one calls what (see also: http://bugs.winehq.org/show_bug.cgi?id=5310)
My guess is ChoosePixelFormat calls wglChoosePixelFormat / gdiChoosePixelFormat internally (according to MSDN it is recommended that you call the undecorated function, unless you dynamically load opengl32.dll).
Are you certain that wgl (opengl.c) comes into play here? I'll try to take a look, but my job does not allow much free time unfortunately.