mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
vkd3d-compiler: Use the correct array count in validate_target_type().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
55feaae815
commit
4eadd917c7
@ -365,7 +365,7 @@ static bool validate_target_type(
|
||||
const enum vkd3d_shader_target_type *supported_types =
|
||||
vkd3d_shader_get_supported_target_types(source_type, &count);
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(target_type_info); ++i)
|
||||
for (i = 0; i < count; ++i)
|
||||
{
|
||||
if (target_type == supported_types[i])
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user