WGL: move wglShareLists to gdi32

Roderick Colenbrander thunderbird2k at gmx.net
Sat Oct 14 15:49:09 CDT 2006


Hi,

This patch routes wglShareLists through gdi32.dll and it depends on the previous WGL patches (context and wglGetCurrentDC).

The wglShareLists call doesn't have a HDC as its parameters. Normally this HDC is used to access the display driver. As an alternative the HGRLC which is passed to it, is cast to a OPENGL_Context which does have a HDC. This way the display driver can be accessed.

Once the opengl32 transition is done, the HGLRC code will be cleaned up so that this evil casting isn't needed. Right now it can't be done because all WGL extension code is still inside winex11.drv and it doesn't pass the 'gdi32' wrapper yet, so PhysRC changes can't be done yet.

Regards,
Roderick Colenbrander
-- 
GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wgl_share_lists.patch
Type: text/x-patch
Size: 3773 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061014/552d4150/wgl_share_lists.bin


More information about the wine-patches mailing list