Disallow passing NULL for state to _mesa_glsl_error
The two places that were still passing NULL had a state pointer to pass. Not passing it in these places prevented termination of compilation of erroneous programs.
This commit is contained in:
@@ -650,7 +650,7 @@ ast_expression::hir(exec_list *instructions,
|
||||
if (var != NULL) {
|
||||
type = result->type;
|
||||
} else {
|
||||
_mesa_glsl_error(& loc, NULL, "`%s' undeclared",
|
||||
_mesa_glsl_error(& loc, state, "`%s' undeclared",
|
||||
this->primary_expression.identifier);
|
||||
|
||||
error_emitted = true;
|
||||
@@ -704,7 +704,7 @@ ast_expression::hir(exec_list *instructions,
|
||||
}
|
||||
|
||||
if (is_error_type(type) && !error_emitted)
|
||||
_mesa_glsl_error(& loc, NULL, "type mismatch");
|
||||
_mesa_glsl_error(& loc, state, "type mismatch");
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user