diff --git a/src/front/glsl/functions.rs b/src/front/glsl/functions.rs index b99daa85f6..919876e6a4 100644 --- a/src/front/glsl/functions.rs +++ b/src/front/glsl/functions.rs @@ -795,7 +795,7 @@ impl Program<'_> { Expression::Swizzle { .. } ) { - let ty = self.module.types.append(Type { + let ty = self.module.types.fetch_or_append(Type { name: None, inner: TypeInner::Vector { size, kind, width }, });