opengl: Properly use glXQueryDrawable() to get the Visual ID

Tomas Carnecky tom at dbservice.com
Mon May 8 17:38:00 CDT 2006


According to the spec [1] it's not allowed to use GLX_VISUAL_ID in
glXQueryDrawable(). The only way to get the Visual ID from a GLXDrawable
is to get the GLXFBConfig ID from the drawable and then the Visual ID
from the GLXFBConfig. Although GLX_VISUAL_ID may work, it kind of works
with my proprietary nvidia drivers, it's not guaranteed to yield correct
values and makes debugging hard.

Anything wrong with this patch?

ChangeLog:
 - opengl: Properly use glXQueryDrawable() to get the Visual ID

[1]
http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.doc/libs/openglrf/glXQueryDrawable.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-fix-glXQueryDrawable.patch
Type: text/x-patch
Size: 1787 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060509/95c01737/wine-fix-glXQueryDrawable.patch


More information about the wine-patches mailing list