vkd3d-shader/sm4: Use the parser location in shader_sm4_error().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2021-10-06 17:11:44 +02:00 committed by Alexandre Julliard
parent 1e62adbee7
commit 8543a1741e

View File

@ -181,7 +181,7 @@ static void VKD3D_PRINTF_FUNC(3, 4) shader_sm4_error(struct vkd3d_shader_sm4_par
va_list args;
va_start(args, format);
vkd3d_shader_verror(sm4->p.message_context, NULL, error, format, args);
vkd3d_shader_verror(sm4->p.message_context, &sm4->p.location, error, format, args);
va_end(args);
}