summaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_parser_extras.cpp
diff options
context:
space:
mode:
authorAnuj Phogat <anuj.phogat@gmail.com>2014-02-10 14:12:40 -0800
committerAnuj Phogat <anuj.phogat@gmail.com>2014-05-01 10:58:39 -0700
commit9bcb0a85321c128b6e5ff8fc6694c2eff613e65a (patch)
tree8e9b96c46f0d1b97d73915ba3ac86293ccff3edf /src/glsl/glsl_parser_extras.cpp
parent35f11e85cbe82b4bb77535e84e5515a5c49f67a6 (diff)
downloadexternal_mesa3d-9bcb0a85321c128b6e5ff8fc6694c2eff613e65a.zip
external_mesa3d-9bcb0a85321c128b6e5ff8fc6694c2eff613e65a.tar.gz
external_mesa3d-9bcb0a85321c128b6e5ff8fc6694c2eff613e65a.tar.bz2
glsl: Apply the link error conditions to GL_ARB_fragment_coord_conventions
Link error conditions added in previous patch are equally applicable to GL_ARB_fragment_coord_conventions implementation. Extension's spec says: "If gl_FragCoord is redeclared in any fragment shader in a program, it must be redeclared in all the fragment shaders in that program that have a static use of gl_FragCoord. All redeclarations of gl_FragCoord in all fragment shaders in a single program must have the same set of qualifiers." Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Cc: <mesa-stable@lists.freedesktop.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/glsl/glsl_parser_extras.cpp')
-rw-r--r--src/glsl/glsl_parser_extras.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp
index 600658d..8f09cc7 100644
--- a/src/glsl/glsl_parser_extras.cpp
+++ b/src/glsl/glsl_parser_extras.cpp
@@ -1408,6 +1408,8 @@ set_shader_inout_layout(struct gl_shader *shader,
shader->uses_gl_fragcoord = state->fs_uses_gl_fragcoord;
shader->pixel_center_integer = state->fs_pixel_center_integer;
shader->origin_upper_left = state->fs_origin_upper_left;
+ shader->ARB_fragment_coord_conventions_enable =
+ state->ARB_fragment_coord_conventions_enable;
break;
default: