Some OpenGL games running in Wine (such as the multiplayer part of Wolfenstein) does not work with Mesa drivers. The problem is apparently that Mesa doesn't like Wine passing 0xffffffff as GLX_DRAWABLE_TYPE. There's a longer explanation of the issue here: http://bugs.winehq.org/show_bug.cgi?id=26763 I tried using apitrace to trace the game with fglrx but the resulting trace runs with Mesa drivers so it can't be used to reproduce the bug.
You are correct. GLX_DONT_CARE (0xffffffff) should be handled for these cases. Page 17 (page 23 of the PDF) of the GLX 1.4 spec says: "If GLX DONT CARE is specified as an attribute value, then the attribute will not be checked. GLX DONT CARE may be specified for all attributes except GLX LEVEL."
I just posted a piglit test that reproduces this issue. http://lists.freedesktop.org/archives/piglit/2012-March/002132.html Once that test gets into piglit, I'll post a proposed fix.
*** Bug 62999 has been marked as a duplicate of this bug. ***
Patch: http://lists.freedesktop.org/archives/mesa-dev/2013-April/036991.html
(In reply to comment #0) > I tried using apitrace to trace the game with fglrx but the resulting trace > runs with Mesa drivers so it can't be used to reproduce the bug. apitrace doesn't replay GLX/WGL/CGL/EGL calls faithfully -- it does a very rough emulation using whatever is available so one can replay traces from different OSes -- so in general it can't be used to reproduce bugs in these APIs, only on proper GL, GL ES.
This should be fixed by the following commit on Mesa master. It should get picked over to the 9.1 branch next week. commit 9cda3560048e8595d3ffa315b76487f4479bff2c Author: Alexander Monakov <amonakov@ispras.ru> Date: Tue Apr 2 01:38:27 2013 +0400 Honor GLX_DONT_CARE in MATCH_MASK NOTE: This is a candidate for stable branches. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47478 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=62999 Bugzilla: http://bugs.winehq.org/show_bug.cgi?id=26763
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.