diff options
author | Paul Berry <[email protected]> | 2013-08-06 12:17:17 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-08-09 10:35:06 -0700 |
commit | 417dc8081ba123fb93c34a3b14cd174dbce702f5 (patch) | |
tree | 0a4a8e3a5fabbe547326d9628846a3697a608945 /src/glsl/glsl_parser.yy | |
parent | 13fedf2883c7a1d7ff911b75eb88df00ba22eea7 (diff) |
glsl: Enable ARB_fragment_coord_conventions functionality in GLSL 1.50.
GLSL 1.50 incorporates the functionality of the
ARB_fragment_coord_conventions extension, so we need to make this
functionality available even if the extension isn't enabled.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glsl/glsl_parser.yy')
-rw-r--r-- | src/glsl/glsl_parser.yy | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy index a847d2a2d5c..e3a57ea0251 100644 --- a/src/glsl/glsl_parser.yy +++ b/src/glsl/glsl_parser.yy @@ -1158,7 +1158,8 @@ layout_qualifier_id: memset(& $$, 0, sizeof($$)); /* Layout qualifiers for ARB_fragment_coord_conventions. */ - if (!$$.flags.i && state->ARB_fragment_coord_conventions_enable) { + if (!$$.flags.i && (state->ARB_fragment_coord_conventions_enable || + state->is_version(150, 0))) { if (strcmp($1, "origin_upper_left") == 0) { $$.flags.q.origin_upper_left = 1; } else if (strcmp($1, "pixel_center_integer") == 0) { |