http://bugs.winehq.org/show_bug.cgi?id=5310
------- Additional Comments From the3dfxdude@gmail.com 2006-14-11 16:54 ------- Yeah probably. I can't find any documentation for GdiSwapBuffers, so it's probably more or less internal to the API.
So what I'm seeing is that SwapBuffers should basically be renamed GdiSwapBuffers. After that a new SwapBuffers is written to check for use of OpenGL, if true, calls opengl32.wglSwapBuffers. Else calls GdiSwapBuffers. Then all we need is opengl32.wglSwapBuffers to call GdiSwapBuffers. And the same pattern follows for the rest of the wgl/Gdi combos. So I suppose this could be done after Roderick is finished with moving wgl over to gdi? Of course it should only be done when we confirm it can take this path. And yes, it might still import the original gdi functions; I think we only need to be concerned with what is shown in the opengl32.spec as getting forwarded back to gdi.