diff options
author | Marek Olšák <[email protected]> | 2016-01-02 20:16:16 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-01-08 20:06:23 +0100 |
commit | 4191c1a57c1e806a078bfc5b074b557ff2b54c35 (patch) | |
tree | 08ac0529498128b05b3cc8be6152ca920c71bb99 /src/glsl/ast_to_hir.cpp | |
parent | c07cf5f5a92d3c7d433a05a06faf9d262a732f4a (diff) |
glsl: optionally declare gl_FragCoord & gl_FrontFacing as system values
Reviewed-by: Edward O'Callaghan <[email protected]
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/glsl/ast_to_hir.cpp')
-rw-r--r-- | src/glsl/ast_to_hir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index e6aec3654b8..f3966d7e3f4 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -3517,7 +3517,7 @@ get_variable_being_redeclared(ir_variable *var, YYLTYPE loc, state->is_version(150, 0)) && strcmp(var->name, "gl_FragCoord") == 0 && earlier->type == var->type - && earlier->data.mode == var->data.mode) { + && var->data.mode == ir_var_shader_in) { /* Allow redeclaration of gl_FragCoord for ARB_fcc layout * qualifiers. */ |