diff options
author | Nicolai Hähnle <[email protected]> | 2017-05-15 08:34:24 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-06-13 09:35:53 +0200 |
commit | 8dddb9788a2e9aa6b52b0eb9474d015b0262062e (patch) | |
tree | bcacc7dfd781a1f6d7bf0b7a6a80751a5e44b92e /src | |
parent | de32c8378cd2ba8d6a16351ccac1ae42fee60b77 (diff) |
glsl: simplify an assertion in lower_ubo_reference
Struct types are now equal when they're structurally equal.
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/glsl/lower_ubo_reference.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/lower_ubo_reference.cpp b/src/compiler/glsl/lower_ubo_reference.cpp index 71188459cdd..163c25e706a 100644 --- a/src/compiler/glsl/lower_ubo_reference.cpp +++ b/src/compiler/glsl/lower_ubo_reference.cpp @@ -893,7 +893,7 @@ lower_ubo_reference_visitor::check_for_buffer_struct_copy(ir_assignment *ir) if (!lhs_deref) return false; - assert(lhs_deref->type->record_compare(rhs_deref->type)); + assert(lhs_deref->type == rhs_deref->type); void *mem_ctx = ralloc_parent(shader->ir); for (unsigned i = 0; i < lhs_deref->type->length; i++) { |