http://bugs.winehq.org/show_bug.cgi?id=13025
--- Comment #2 from Mikko Rasa tdb@tdb.fi 2008-05-07 18:51:06 --- I did a git bisect, and it reported this:
4428cc32de1f99463ebaa990726c8bd7a3eef6c4 is first bad commit commit 4428cc32de1f99463ebaa990726c8bd7a3eef6c4 Author: Roderick Colenbrander thunderbird2k@gmx.net Date: Mon Apr 28 21:13:12 2008 +0000
wined3d: Fix a few small bugs in WineD3D_ChoosePixelFormat.
:040000 040000 6e6e5f451c4a9961328c12a57c3042b6b622067c b5090b2050987a2273e1e20d55c91be1117c1c92 M dlls
The culprit is the middle hunk, i.e. this:
- } else { + } else if(!iPixelFormat) {
The game is not requesting an automatic depth/stencil buffer, so WineD3D_ChoosePixelFormat doesn't give it one. However, this bug allows it to call ChoosePixelFormat even though a valid one was already found. It finds the exact same pixel format, but apparently somehow with a depth buffer.