glsl: Relax GLSL 1.10 float suffix error to a warning.
authorMatt Turner <mattst88@gmail.com>
Wed, 20 Apr 2016 19:29:23 +0000 (12:29 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 21 Apr 2016 17:33:08 +0000 (10:33 -0700)
commit1bc983cd649af10d87500ceda37d7a36aa3741a6
treec3ae2b1f3833099fe4a7771e3ef93354e8d5a948
parent33565d67641142a68d537023e181b6dcd587e551
glsl: Relax GLSL 1.10 float suffix error to a warning.

Float suffixes are allowed in all subsequent GLSL specifications, and
it's obvious what the user meant if they specify one. Accept it with a
warning to avoid breaking applications, like Planeshift (although it
looks like between 0.6.1 and 0.6.3 they might have removed the suffixes
from their shaders).

Reviewed-by: Lars Hamre <chemecse@gmail.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/glsl_lexer.ll