From 846ea0ec0920498cbec9512806a23eccdfa6491b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Capucho?= Date: Fri, 20 Aug 2021 01:30:51 +0100 Subject: [PATCH] [glsl-in] Align child structs --- src/front/glsl/offset.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/front/glsl/offset.rs b/src/front/glsl/offset.rs index 9b9f7957d..2c2140b93 100644 --- a/src/front/glsl/offset.rs +++ b/src/front/glsl/offset.rs @@ -142,6 +142,8 @@ pub fn calculate_offset( span += info.span; } + span = align_up(span, align); + let ty_span = types.get_span(ty).clone(); ty = types.fetch_or_append( Type {