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

Sebastian Lackner sebastian at fds-team.de
Tue Feb 28 07:52:14 CST 2017


On 28.02.2017 06:11, Henri Verbeet wrote:
> Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
> ---
>  dlls/wined3d/cs.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 

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?

Example app (~40 MB):
https://archive.org/download/MotoRacer2Demo/MotoRacer2Demo.zip
(sha256: 02c8523d61619b9f65d874e15af9838ebf78938a720c5b61504d97c0b7cc68c9)

Best regards,
Sebastian




More information about the wine-devel mailing list