glsl: Generate link error for non-matching gl_FragCoord redeclarations
authorAnuj Phogat <anuj.phogat@gmail.com>
Thu, 5 Mar 2015 19:07:52 +0000 (11:07 -0800)
committerAnuj Phogat <anuj.phogat@gmail.com>
Tue, 24 Mar 2015 18:16:31 +0000 (11:16 -0700)
commitd8208312a3a200b4e6d71ce533d835b2d705234a
tree846f090bafcde8a043782b22260209565ce177ec
parent7bc39c8418ee5de49e3d38aaf5f9e478ff78874c
glsl: Generate link error for non-matching gl_FragCoord redeclarations

in different fragment shaders. This also applies to a case when gl_FragCoord
is redeclared with no layout qualifiers in one fragment shader and not
declared but used in other fragment shader.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Khronos Bug#12957
Cc: "10.5" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/glsl/linker.cpp