reactos/sdk
winesync 777269ea64 [WINESYNC] d3dx9: Use an assert() to validate access to const_tbl[].
This check is essentially validating that the hardcoded state_table[]
has reasonable values for the shader constant states. Use ARRAY_SIZE()
to avoid warnings if the compiler chooses an unsigned integer to back
enum SHADER_CONSTANT_TYPE.

Based on an idea by Henri Verbeet.

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>

wine commit id cfc533b40d2d1426a8f05501152b28aa1ec78f07 by Matteo Bruni <mbruni@codeweavers.com>
2021-02-04 16:37:06 +01:00
..
cmake [CMAKE] Remove unused variables _ELF_ 2021-02-04 11:14:59 +01:00
include [WINESYNC] include: Fix D3DXF_FILELOADMEMORY definition. 2021-02-04 16:37:03 +01:00
lib [CRT/x64] Correctly implement fabs for GCC 2021-02-01 19:57:12 +01:00
tools [WINESYNC] d3dx9: Use an assert() to validate access to const_tbl[]. 2021-02-04 16:37:06 +01:00