mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 01:08:03 +02:00
Only allow global precision qualifier for int and float
This causes the following tests to pass:
glslparsertest/glsl2/precision-03.vert
This commit is contained in:
parent
9bcb67bdc4
commit
19eb5896c4
1 changed files with 7 additions and 0 deletions
|
|
@ -628,6 +628,13 @@ declaration:
|
|||
}
|
||||
| PRECISION precision_qualifier type_specifier_no_prec ';'
|
||||
{
|
||||
if (($3->type_specifier != ast_float)
|
||||
&& ($3->type_specifier != ast_int)) {
|
||||
_mesa_glsl_error(& @3, state, "global precision qualifier can "
|
||||
"only be applied to `int' or `float'\n");
|
||||
YYERROR;
|
||||
}
|
||||
|
||||
$$ = NULL; /* FINISHME */
|
||||
}
|
||||
;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue