[glsl-in] Fix missing implicit conversion in mix

This commit is contained in:
João Capucho authored and Dzmitry Malyshau committed 2021-08-03 13:58:25 -04:00
1 parent fde91c1d94
commit 08302b5078
1 file changed
+7
+7
View File
@@ -679,6 +679,13 @@ impl Program<'_> {
&mut selector,
selector_meta,
)?;
ctx.binary_implicit_conversion(
self,
&mut arg1,
arg1_meta,
&mut selector,
selector_meta,
)?;
let is_vector = match *self.resolve_type(ctx, selector, selector_meta)? {
TypeInner::Vector { .. } => true,