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:
parent
91a827624c
commit
9d8aa88693
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue