diff options
author | Samuel Pitoiset <[email protected]> | 2017-04-21 10:16:58 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-04-21 19:33:29 +0200 |
commit | 053912382ee2865da24be4bdd4c21de525519460 (patch) | |
tree | 19e54f7debbef458832635958a4f2bda7225ff73 /src/compiler/glsl/linker.cpp | |
parent | 993a05f0eb4992a3608e54b607a07330b9fbe196 (diff) |
glsl: make use glsl_type::is_atomic_uint()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/compiler/glsl/linker.cpp')
-rw-r--r-- | src/compiler/glsl/linker.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp index 7ace01dd9d3..4dcef2b260e 100644 --- a/src/compiler/glsl/linker.cpp +++ b/src/compiler/glsl/linker.cpp @@ -3702,8 +3702,7 @@ create_shader_variable(struct gl_shader_program *shProg, * qualifier, except for vertex shader inputs and fragment shader * outputs." */ - if (in->type->base_type == GLSL_TYPE_ATOMIC_UINT || - is_gl_identifier(in->name) || + if (in->type->is_atomic_uint() || is_gl_identifier(in->name) || !(in->data.explicit_location || use_implicit_location)) { out->location = -1; } else { |