mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader: Correct an off-by-one error when comparing against ARRAY_SIZE.
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
0cd7f47263
commit
d64a423233
@ -520,7 +520,7 @@ static void shader_dump_resource_type(struct vkd3d_string_buffer *buffer, enum v
|
||||
/* VKD3D_SHADER_RESOURCE_TEXTURE_CUBEARRAY */ "texturecubearray",
|
||||
};
|
||||
|
||||
if (type <= ARRAY_SIZE(resource_type_names))
|
||||
if (type < ARRAY_SIZE(resource_type_names))
|
||||
shader_addline(buffer, "%s", resource_type_names[type]);
|
||||
else
|
||||
shader_addline(buffer, "unknown");
|
||||
|
Loading…
Reference in New Issue
Block a user