WGL: wglMakeContextCurrentARB

Roderick Colenbrander thunderbird2k at gmx.net
Fri Oct 27 14:58:37 CDT 2006


Hi,

Right now most of the opengl32 rewrite is done except for some cleanups and moving of the WGL GLU functions (which is easy). One of the cleanups which I'm doing is getting rid of ExtEscape functions inside the opengl code. One of the ones I want to get rid of is the one in 'get_drawable'.

This function is for example used from the WGL extension function 'wglMakeContextCurrentARB'. This function receives two HDCs are parameters and calls get_drawable on both HDCs. This patch changes the X11DRV version of wglMakeContextCurrentARB to work with X11DRV_PDEVICE structures, which will remove the need for get_drawable in this function.

I have addded a wglMakeContextCurrentARB wrapper to gdi32.dll. In case a program wants this function wglGetProcAddress will return the wrapper function (in case the extension is available). Right now there's only one WGL extension for which parameter translation is needed, so that's why I used a simple strcmp check inside wglGetProcAddress and nothing something nicer. I don't expect a need for more functions which need this in the near future.

Regards,
Roderick Colenbrander
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wgl_makecontextcurrentarb.patch
Type: text/x-patch
Size: 5574 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061027/6a671203/wgl_makecontextcurrentarb.bin


More information about the wine-patches mailing list