wined3d: Only invalidate valid state IDs in wined3d_cs_exec_reset_state().
commit0170bb0e548d33e4fa014b73cd2c75ce7ea0dc82
authorHenri Verbeet <hverbeet@codeweavers.com>
Fri, 25 Jun 2021 13:01:28 +0000 (25 15:01 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 25 Jun 2021 20:48:48 +0000 (25 22:48 +0200)
treea4845cc27f55582f8eba38a340719070ca1da6b1
parent556121b1cafc2182edaeb7354caf46375205bef7
wined3d: Only invalidate valid state IDs in wined3d_cs_exec_reset_state().

Not every state ID between 0 and STATE_HIGHEST is valid; for example, there
are holes in the renderstate IDs. While invalidating these works fine,
attempting to subsequently apply them in e.g. context_apply_draw_state() ends
up calling state_undefined() and printing an ERR. This is especially visible
when running the d2d1 tests.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/wined3d/cs.c