[PATCH 1/2] winemac: Fix wglSwapBuffers() to operate on the HDC, not the current GL context.

Ken Thomases ken at codeweavers.com
Fri Mar 21 00:15:32 CDT 2014


This fixes conformance with some opengl32 tests.

This is still broken in that the OS X GL APIs don't have a way of swapping
the buffers of a drawable as such, they only provide ways to swap the buffers
of a _context's_ drawable.  (Doesn't have to be the current context.)  If the
current context isn't associated with the HDC, it's not feasible to find a
context that is (and isn't busy on another thread) in order to do the swap.
There may not even be any context associated with the HDC.
---
dlls/winemac.drv/opengl.c | 49 +++++++++++++++++++++++++++++++++++++++++++----
1 file changed, 45 insertions(+), 4 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winemac-Fix-wglSwapBuffers-to-operate-on-the-HDC-not.patch
Type: text/x-patch
Size: 2023 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140321/408d845c/attachment.bin>


More information about the wine-patches mailing list