http://bugs.winehq.org/show_bug.cgi?id=20669
--- Comment #12 from Henri Verbeet hverbeet@gmail.com 2010-03-04 06:37:54 --- (In reply to comment #11)
The buffer_map entry TRACE is printed, but the one where it prints the returned address isn't. So it is crashing somewhere in this function. The backtrace doesn't contain any helpful infos.
Well, it's clearly dereferencing a NULL pointer, possibly inside libGL.
Since the game seems to be doing quite a bit of cleanup at this point, the first thing you want to check is if you've got a *valid* GL context. You may also want to explicitly check if you return from the GL_EXTCALL's.