winex11.drv: recognize WGL_SWAP_METHOD_ARB wgl pixel format attribute.
screwdriver at lxnt.info
Wed Aug 6 13:50:24 CDT 2008
Stefan Dösinger wrote:
> There's GLX_OML_swap_method. It is supported on fglrx, and I think it is
> supported on the open source drivers as well
Hmm. Did not found that one. Is supported on r300/mesa7-7.1.0~git20080728.
Modified patch attached.
It would be better to actually convert the attribute in
ConvertAttribWGLtoGLX, but, in case the GLX extension is missing, we
must somehow tell ConvertAttribWGLtoGLX's caller, of whose currently
only one exists, that it should filter the list of fbformats on this
attribute itself (in general case).
In our case, if we can't tell what swap methods are on fbformats, we
must assume they're GLX_SWAP_UNDEFINED_OML, and thus if
WGL_SWAP_METHOD_ARB attribute in request is not WGL_SWAP_UNDEFINED_ARB,
then there are zero matching fbformats(pixelformats).
Is putting the following into ConvertAttribWGLtoGLX a good idea?
pop = iWGLAttr[++cur];
ERR("unexpected WGL_SWAP_METHOD_ARB(%x)\n", pop);
else if (pop != WGL_SWAP_UNDEFINED_ARB)
return 0; /* no fbconfig could possibly match */
break; /* they all match, swap being undefined by default */
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2368 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080806/41e794a2/attachment.patch
More information about the wine-patches