glsl: Disallow float literals with the 'f' suffix but no point or exponent

According to the GLSL spec float literals like ‘1f’ shouldn't be allowed
without adding a decimal point or an exponent. Apparently the AMD driver also
disallows this so it seems unlikely that anything would be relying on it.

Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Neil Roberts 2014-11-26 17:15:01 +00:00
parent 91a827624c
commit 9d8aa88693
1 changed files with 0 additions and 4 deletions

View File

@ -466,10 +466,6 @@ layout {
yylval->real = _mesa_strtof(yytext, NULL);
return FLOATCONSTANT;
}
[0-9]+[fF] {
yylval->real = _mesa_strtof(yytext, NULL);
return FLOATCONSTANT;
}
true {
yylval->n = 1;