diff options
author | Samuel Pitoiset <[email protected]> | 2017-04-21 10:32:39 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-04-21 19:33:36 +0200 |
commit | 64db02b5fabcf740b353904b05bd9b9e8c713b76 (patch) | |
tree | 41640b2ede731c321e5b33a0e057e76c84398138 /src/compiler/glsl/ir.cpp | |
parent | cd78ab55d0afefa501929366205443e15ed85495 (diff) |
glsl: make use of glsl_type::is_record()
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/ir.cpp')
-rw-r--r-- | src/compiler/glsl/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/ir.cpp b/src/compiler/glsl/ir.cpp index 2bbc7a1cf72..b5c1fa33919 100644 --- a/src/compiler/glsl/ir.cpp +++ b/src/compiler/glsl/ir.cpp @@ -1237,7 +1237,7 @@ ir_constant::has_value(const ir_constant *c) const return true; } - if (this->type->base_type == GLSL_TYPE_STRUCT) { + if (this->type->is_record()) { const exec_node *a_node = this->components.get_head_raw(); const exec_node *b_node = c->components.get_head_raw(); |