glsl: Pass parse state to can_implicitly_convert_to()
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
@@ -80,12 +80,12 @@ parameter_lists_match(_mesa_glsl_parse_state *state,
|
||||
|
||||
case ir_var_const_in:
|
||||
case ir_var_function_in:
|
||||
if (!actual->type->can_implicitly_convert_to(param->type))
|
||||
if (!actual->type->can_implicitly_convert_to(param->type, state))
|
||||
return PARAMETER_LIST_NO_MATCH;
|
||||
break;
|
||||
|
||||
case ir_var_function_out:
|
||||
if (!param->type->can_implicitly_convert_to(actual->type))
|
||||
if (!param->type->can_implicitly_convert_to(actual->type, state))
|
||||
return PARAMETER_LIST_NO_MATCH;
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user