glsl: Disallow float literals with the 'f' suffix but no point or exponent
authorNeil Roberts <neil@linux.intel.com>
Wed, 26 Nov 2014 17:15:01 +0000 (17:15 +0000)
committerNeil Roberts <neil@linux.intel.com>
Thu, 27 Nov 2014 11:43:17 +0000 (11:43 +0000)
commit9d8aa886938c7476a911f8cf8051d87d76755394
treed7962880abef2d8cbb22c8c8fff4551917a3e2bc
parent91a827624c01d40613e97322632aaffe319540f1
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>
src/glsl/glsl_lexer.ll