[PATCH] winex11.drv: Store the actual GLXFBConfig instead of an index to the GLXFBConfig list.

Tomas Carnecky tom at dbservice.com
Fri Jul 20 15:39:09 CDT 2007

The winex11.drv OpenGL code maintains a iPixelFormat <-> GLXFBConfig
mapping. But instead of storing the GLXFBConfig directly, it stores the
index to the glXGetFBConfigs() list. This means everytime we want to get
a GLX attribute of a GLXFBConfig associated with an iPixelFormat, we
have to call glXGetFBConfigs() to get the whole list and XFree() it
This patch removes the need for such code by storing the actual
GLXFBConfig in the iPixelFormat <-> GLXFBConfig mapping.

 dlls/winex11.drv/opengl.c |  297
 1 files changed, 88 insertions(+), 209 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 06920a8a02f05976ff3cf4ac449a1b3e35d3c476.diff
Type: text/x-patch
Size: 30605 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070720/0d11b328/06920a8a02f05976ff3cf4ac449a1b3e35d3c476-0001.bin

More information about the wine-patches mailing list