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:
Ian Romanick
2010-03-23 13:21:19 -07:00
parent f3f111eac4
commit 71d0bbfcb2
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -44,8 +44,7 @@ _mesa_glsl_error(YYLTYPE *locp, _mesa_glsl_parse_state *state,
int len;
va_list ap;
if (state)
state->error = true;
state->error = true;
len = snprintf(buf, sizeof(buf), "%u:%u(%u): error: ",
locp->source, locp->first_line, locp->first_column);