http://bugs.winehq.org/show_bug.cgi?id=23643
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |matteo.mystral@gmail.com
--- Comment #7 from Matteo Bruni matteo.mystral@gmail.com 2010-10-02 13:21:29 CDT --- A clarification is due. The patch I attached is just a hack which makes things work for me but doesn't solve the underlying issue. The game uses D3D9 to draw its graphics, but it also makes some use of DDRAW, mainly to get informations on the available video memory and to set the display mode. AA3 calls D3D9 functions from one thread but in the meantime it uses DDRAW from another thread. Currently there is no synchronization between D3D9 and DDRAW on the access to wined3d, so hilarity ensues. My patch is just a workaround for one of the possible problems happening because of this issue. A proper solution would be to fix DDRAW locking, replacing the current DDRAW lock with the wined3d one.