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:
Zebediah Figura 2020-10-05 19:45:23 -05:00 committed by Alexandre Julliard
parent 55feaae815
commit 4eadd917c7

View File

@ -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;