[PATCH] d3dx9: Don't check for negative enum value.
gofmanp at gmail.com
Tue Mar 24 10:54:09 CDT 2020
On 3/24/20 18:29, Matteo Bruni wrote:
> I do think that the assert with ARRAY_SIZE() is nicer than the
> previous if and it's not a performance concern (you're supposed to
> compile with -DNDEBUG if you really care about performance). But you
> bring a good point in that we should also check that state->operation
> doesn't overrun state_table. That one should be checked at parse
> time and it should be a normal if () + WARN(), since it depends on the
> effect data. Care to send a patch? :)
Yes, sure. I guess besides WARN it would make sense to fail effect
creation if we meet an unexpected state operation.
More information about the wine-devel