[glsl-in] Deduplicate constants so array types match

This commit is contained in:
Jonathan Behrens authored and Dzmitry Malyshau committed 2021-06-23 11:13:40 -04:00
1 parent 0a957f9427
commit 42f1f37741
1 file changed
+1 -1
+1 -1
View File
@@ -1032,7 +1032,7 @@ impl<'source, 'program, 'options> Parser<'source, 'program, 'options> {
}
};
let handle = self.program.module.constants.append(Constant {
let handle = self.program.module.constants.fetch_or_append(Constant {
name: None,
specialization: None,
inner: ConstantInner::Scalar { width, value },