mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/ir: Pass a NULL location to vkd3d_shader_error() in insert_alpha_test_before_ret().
This commit is contained in:
Notes:
Henri Verbeet
2025-08-28 20:32:12 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1687
@@ -6950,7 +6950,6 @@ static enum vkd3d_result insert_alpha_test_before_ret(struct vsir_program *progr
|
||||
uint32_t colour_temp, struct vkd3d_shader_message_context *message_context)
|
||||
{
|
||||
struct vkd3d_shader_location loc = vsir_program_iterator_current(it)->location;
|
||||
static const struct vkd3d_shader_location no_loc;
|
||||
struct vkd3d_shader_instruction *ins;
|
||||
|
||||
static const struct
|
||||
@@ -7006,7 +7005,7 @@ static enum vkd3d_result insert_alpha_test_before_ret(struct vsir_program *progr
|
||||
break;
|
||||
|
||||
case VKD3D_SHADER_PARAMETER_DATA_TYPE_FLOAT32_VEC4:
|
||||
vkd3d_shader_error(message_context, &no_loc, VKD3D_SHADER_ERROR_VSIR_INVALID_PARAMETER,
|
||||
vkd3d_shader_error(message_context, NULL, VKD3D_SHADER_ERROR_VSIR_INVALID_PARAMETER,
|
||||
"Alpha test reference data type must be a single component.");
|
||||
return VKD3D_ERROR_INVALID_ARGUMENT;
|
||||
|
||||
|
Reference in New Issue
Block a user