[glsl-in] Multi entry, don't use find on hashmap

This commit is contained in:
Pelle Johnsen authored and Dzmitry Malyshau committed 2021-02-17 10:05:40 -05:00
1 parent 408002815f
commit 9f0cdfe9e5
1 file changed
+2 -5
+2 -5
View File
@@ -287,11 +287,8 @@ impl Program<'_> {
.name
.clone()
.ok_or_else(|| ErrorKind::SemanticError("Unnamed function".into()))?;
let stage = self
.entry_points
.iter()
.find_map(|(n, s)| if *name == *n { Some(*s) } else { None });
if let Some(stage) = stage {
let stage = self.entry_points.get(&name);
if let Some(&stage) = stage {
self.module.entry_points.insert(
(stage, name),
EntryPoint {