glsl: allow the #extension directive within code blocks for the dri option
for Viewperf 13 Acked-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
6718bb57ac
commit
bd2995c8b7
|
@ -2538,6 +2538,15 @@ statement_list:
|
|||
$$ = $1;
|
||||
$$->link.insert_before(& $2->link);
|
||||
}
|
||||
| statement_list extension_statement
|
||||
{
|
||||
if (!state->allow_extension_directive_midshader) {
|
||||
_mesa_glsl_error(& @1, state,
|
||||
"#extension directive is not allowed "
|
||||
"in the middle of a shader");
|
||||
YYERROR;
|
||||
}
|
||||
}
|
||||
;
|
||||
|
||||
expression_statement:
|
||||
|
|
Loading…
Reference in New Issue