http://bugs.winehq.org/show_bug.cgi?id=21492
--- Comment #13 from Stefan Dösinger stefandoesinger@gmx.at 2010-02-10 10:45:51 --- I think the default cflags should do - if you build wine yourself just start configure with ./configure, don't pass any special CFLAGS and don't strip the binaries and things should work. Oh, and keep the source code in place after make install.
Alternatively you can try to add ERR statements to the wined3d code to find out which GL call is causing the crash. The app is crashing somewhere in IWineD3DDeviceImpl_Reset() in dlls/wined3d/device.c, but I think the crashing call is somewhere in context.c.