diff options
author | Neil Roberts <[email protected]> | 2014-11-26 17:15:01 +0000 |
---|---|---|
committer | Neil Roberts <[email protected]> | 2014-11-27 11:43:17 +0000 |
commit | 9d8aa886938c7476a911f8cf8051d87d76755394 (patch) | |
tree | d7962880abef2d8cbb22c8c8fff4551917a3e2bc /src/glsl/glsl_lexer.ll | |
parent | 91a827624c01d40613e97322632aaffe319540f1 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/glsl/glsl_lexer.ll')
-rw-r--r-- | src/glsl/glsl_lexer.ll | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/glsl/glsl_lexer.ll b/src/glsl/glsl_lexer.ll index ad6d32f9bc0..419a07b1daf 100644 --- a/src/glsl/glsl_lexer.ll +++ b/src/glsl/glsl_lexer.ll @@ -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; |