wgl: Don't return prematurely if ConvertPixelFormatWGLtoGLX receives an invalid pixel format

Chris Robinson chris.kcat at gmail.com
Sat Dec 2 20:06:42 CST 2006


This fixes a bug found through AllegroGL, which queries 
WGL_NUMBER_PIXEL_FORMATS_ARB with a pixel format of 0. The pixel format and 
layer plane fields are supposed to be ignored when retrieving this attribute, 
however ConvertPixelFormatWGLtoGLX would return failure before setting the 
number of available pixel formats, causing the program to think there are no 
pixel formats available. This also downgrades the ERR to a WARN in 
X11DRV_wglGetPixelFormatAttribivARB as it's not necessarily an error for the 
function to return failure.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winex11_opengl.diff
Type: text/x-diff
Size: 1901 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061202/ecffa739/winex11_opengl.bin


More information about the wine-patches mailing list