winex11.drv: pbuffer detection.

This commit is contained in:
Roderick Colenbrander 2006-12-19 20:24:25 +01:00 committed by Alexandre Julliard
parent b2f33ffbbb
commit c026faaeed
1 changed files with 12 additions and 1 deletions

View File

@ -2947,7 +2947,18 @@ static void X11DRV_WineGL_LoadExtensions(void)
if (glxRequireExtension("GLX_ARB_multisample"))
register_extension(&WGL_ARB_multisample);
if (glxRequireVersion(3) && glxRequireExtension("GLX_SGIX_pbuffer"))
/* In general pbuffer functionality requires support in the X-server. The functionality is
* available either when the GLX_SGIX_pbuffer is present or when the GLX server version is 1.3.
* All display drivers except for Nvidia's use the GLX module from Xfree86/Xorg which only
* supports GLX 1.2. The endresult is that only Nvidia's drivers support pbuffers.
*
* The only other drive which has pbuffer support is Ati's FGLRX driver. They provide clientside GLX 1.3 support
* without support in the X-server (which other Mesa based drivers require).
*
* Support pbuffers when the GLX version is 1.3 and GLX_SGIX_pbuffer is available. Further pbuffers can
* also be supported when GLX_ATI_render_texture is available. This extension depends on pbuffers, so when it
* is available pbuffers must be available too. */
if ( (glxRequireVersion(3) && glxRequireExtension("GLX_SGIX_pbuffer")) || glxRequireExtension("GLX_ATI_render_texture"))
register_extension(&WGL_ARB_pbuffer);
register_extension(&WGL_ARB_pixel_format);