ARB prog parser: More robust error message for bad OPTION string
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -284,7 +284,11 @@ option: OPTION IDENTIFIER ';'
|
|||||||
|
|
||||||
|
|
||||||
if (!valid) {
|
if (!valid) {
|
||||||
yyerror(& @2, state, "invalid option string");
|
const char *const err_str = (state->mode == ARB_vertex)
|
||||||
|
? "invalid ARB vertex program option"
|
||||||
|
: "invalid ARB fragment program option";
|
||||||
|
|
||||||
|
yyerror(& @2, state, err_str);
|
||||||
YYERROR;
|
YYERROR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user