Allow individual layers to render their own background color

Instead of relying on a scene-wide background color, all layers can now
have their own background color.
This commit is contained in:
Martin Robinson 2014-09-23 19:43:29 -07:00
parent d168501555
commit fbd0b6f9d0
4 changed files with 57 additions and 55 deletions

View file

@ -952,10 +952,6 @@ impl<Window: WindowMethods> IOCompositor<Window> {
// Render the scene.
match self.scene.root {
Some(ref layer) => {
self.scene.background_color.r = layer.extra_data.borrow().background_color.r;
self.scene.background_color.g = layer.extra_data.borrow().background_color.g;
self.scene.background_color.b = layer.extra_data.borrow().background_color.b;
self.scene.background_color.a = layer.extra_data.borrow().background_color.a;
rendergl::render_scene(layer.clone(), self.context, &self.scene);
}
None => {}