On 28 February 2017 at 14:52, Sebastian Lackner sebastian@fds-team.de wrote:
This patch causes corrupted graphics in multiple games. The problem is caused by uninitialized memory in the wined3d_state structs. Currently the struct is only cleared in wined3d_cs_exec_reset_state, but it probably should be cleared always when WINED3D_STATE_INIT_DEFAULT is passed, otherwise the CS and the main state can go out of sync. Could you please take a look?
It does look like we forget to clear the state structure in wined3d_device_reset(). Is fixing that not enough?