WGL: fix wglGetPixelFormatAttribiv bug

Roderick Colenbrander thunderbird2k at gmx.net
Wed Dec 27 15:01:37 CST 2006


Hi,

This patch fixes a crash in wglGetPixelFormatAttribiv when iPixelFormat is set to 0 and the attribute the program queries is different from WGL_NUMBER_PIXEL_FORMATS_ARB.

After this fix the Geforce8 Smoke demo from Nvidia works on Wine. In the end wglGetPixelFormatAttribiv needs a big cleanup and that's why I have also added a TODO comment to it.

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_arb_pixelformat.patch
Type: text/x-patch
Size: 1426 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061227/847b7a82/wgl_arb_pixelformat.bin


More information about the wine-patches mailing list