[PATCH 1/5] wined3d: Use the command stream state in wined3d_cs_exec_draw().

Henri Verbeet hverbeet at gmail.com
Tue Feb 28 08:06:14 CST 2017


On 28 February 2017 at 14:52, Sebastian Lackner <sebastian at 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?



More information about the wine-devel mailing list