WGL: pbuffer detection

Roderick Colenbrander thunderbird2k at gmx.net
Tue Dec 19 13:24:25 CST 2006


This patch enables pbuffer support on more OpenGL drivers. This fixes various regressions like bug 5704.

Pbuffer functionality requires support in the X-server and is available when the GLX server is 1.3 or higher or when GLX_SGIX_pbuffer is available. At the moment pbuffers are only enabled on Nvidia hardware as only Nvidia's drivers advertise a (server) GLX version higher than 1.2 and they also advertise the GLX_SGIX_pbuffer extension.

Most other DRI drivers use Mesa and the GLX module from xfree86/xorg. This module is version 1.2 and also doesn't advertise the pbuffer extension. These drivers don't support pbuffers. The only exception to this rule is ATI's FGLRX driver which supports pbuffers without support in the server GLX module.

Before the opengl32 rewrite pbuffer support worked fine (even on FGLRX) but right now it doesn't work because our checks are more strict. (the lack of pbuffers causes regressions in a number of programs) A solution would be to check for the presence of the GLX_ATI_render_texture which requires on pbuffer functionality, so pbuffers can be detected by checking for this extension. This is what the patch does.

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_pbuffer.patch
Type: text/x-patch
Size: 1626 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061219/dbc7cf46/wgl_pbuffer.bin

More information about the wine-patches mailing list