From 0b0d2ab0f3dedd111fe129d68f2cae6d6c435f06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Capucho?= Date: Fri, 20 Aug 2021 01:10:47 +0100 Subject: [PATCH] [glsl-in] Use power of two alignment for bad type in struct Fixes #1243 --- src/front/glsl/offset.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/front/glsl/offset.rs b/src/front/glsl/offset.rs index cb3f0b75d8..9b9f7957db 100644 --- a/src/front/glsl/offset.rs +++ b/src/front/glsl/offset.rs @@ -162,7 +162,7 @@ pub fn calculate_offset( kind: ErrorKind::SemanticError("Invalid struct member type".into()), meta, }); - (0, 0) + (1, 0) } };