[Mesa-dev] [PATCH 1/2] glsl: Disallow float literals with the 'f' suffix but no point or exponent

Matt Turner mattst88 at gmail.com
Wed Nov 26 12:38:48 PST 2014


On Wed, Nov 26, 2014 at 12:02 PM, Neil Roberts <neil at linux.intel.com> wrote:
> 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.
> ---

Thanks Neil. Both are

Reviewed-by: Matt Turner <mattst88 at gmail.com>

And for added confirmation, float x = 1f doesn't compile in C either.


More information about the mesa-dev mailing list