diff options
author | Zebediah Figura <zfigura@codeweavers.com> | 2021-09-15 02:33:26 +0300 |
---|---|---|
committer | Giovanni Mascellani <gmascellani@codeweavers.com> | 2022-07-26 15:48:53 +0300 |
commit | 153e5cb6c7d3057a3b0838c3c22a4094ebe1ea2e (patch) | |
tree | 469941f6f957c6f2c5b2813501d961e6604d7e3f | |
parent | 2a907ce5c364f5f8cdd9eadc268a9b51c9d60395 (diff) |
vkd3d-shader/hlsl: Don't assert that the array element type has a nonzero register size.
It's legal to declare arrays of object types, which don't.
-rw-r--r-- | libs/vkd3d-shader/hlsl.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libs/vkd3d-shader/hlsl.c b/libs/vkd3d-shader/hlsl.c index 0d254ff8..5ca529f7 100644 --- a/libs/vkd3d-shader/hlsl.c +++ b/libs/vkd3d-shader/hlsl.c @@ -165,7 +165,6 @@ static void hlsl_type_calculate_reg_size(struct hlsl_ctx *ctx, struct hlsl_type { unsigned int element_size = type->e.array.type->reg_size; - assert(element_size); if (is_sm4) type->reg_size = (type->e.array.elements_count - 1) * align(element_size, 4) + element_size; else |