http://bugs.winehq.org/show_bug.cgi?id=2707
Summary: crash in glReadBuffer with nvidia-glx Product: Wine Version: 20050111 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-directx AssignedTo: wine-bugs@winehq.org ReportedBy: gus@inodes.org
I've been playing Dungeon Keeper II quite happily for a while now, but for the last month or so every time I start the game it crashes immediately on the first move of the mouse. I had this once a while ago and didn't know what caused it - I believe a reboot fixed it, so put it down to nvidia hardware wierdness. This time however, nothing I can do can make it go away and it is 100% reproducible - always with the same stacktrace. As far as I can tell, other (non-wine) GL programs run fine.
By putting in some TRACE statements, I've tracked it down to the glReadBuffer(GL_FRONT) call in d3ddevice_lock_update() (d3ddevice/main.c:~3670), called from This->lock_update(...) in Main_DirectDrawSurface_Lock() (dsurface/main.c:1124). Unfortunately I don't know anything about GL (or D3D) so don't know how to debug this further.
A full WINEDEBUG=+ddraw log is available at http://www.inodes.org/~gus/dk2.log The "made it to __LINE__" lines are my extra debugging traces.