diff options
author | Nicolai Hähnle <[email protected]> | 2017-05-15 08:32:21 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-06-13 09:35:50 +0200 |
commit | de32c8378cd2ba8d6a16351ccac1ae42fee60b77 (patch) | |
tree | 10e9a7aa7a806ccd01e41a2e9bd8ad5b716a4487 /src/compiler | |
parent | d21a35d63caafe4042da0abd29a43a24b64fa6c1 (diff) |
glsl: simplify validate_intrastage_arrays
Struct types are now equal when they are structurally equal.
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/glsl/linker.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp index 20465db67f3..adfa3b7b1de 100644 --- a/src/compiler/glsl/linker.cpp +++ b/src/compiler/glsl/linker.cpp @@ -850,14 +850,6 @@ validate_intrastage_arrays(struct gl_shader_program *prog, } return true; } - } else { - /* The arrays of structs could have different glsl_type pointers but - * they are actually the same type. Use record_compare() to check that. - */ - if (existing->type->fields.array->is_record() && - var->type->fields.array->is_record() && - existing->type->fields.array->record_compare(var->type->fields.array)) - return true; } } return false; |