Skip to content
Snippets Groups Projects
Commit 4eadd917 authored by Elizabeth Figura's avatar Elizabeth Figura Committed by Alexandre Julliard
Browse files

vkd3d-compiler: Use the correct array count in validate_target_type().

parent 55feaae8
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment