Check the pipeline ID of the new root layer.

This isn't related to any known issue, but is just to ensure that the IDs are
set correctly within this function.
This commit is contained in:
Matt Brubeck 2014-06-04 09:39:31 -07:00
parent e9efa60647
commit 2b0134be7b

View file

@ -367,8 +367,10 @@ impl IOCompositor {
} }
_ => { _ => {
match self.root_pipeline { match self.root_pipeline {
Some(ref root_pipeline) => (root_pipeline.clone(), LayerId::null()), Some(ref root_pipeline) if root_pipeline.id == id => {
None => fail!("Compositor: Received new layer without initialized pipeline"), (root_pipeline.clone(), LayerId::null())
},
_ => fail!("Compositor: Received new layer without initialized pipeline"),
} }
} }
}; };