Skip to content
Permalink
Browse files

WR update: draw background before rendering

  • Loading branch information...
paulrouget committed Mar 21, 2019
1 parent 4dcee2f commit a1a20ee5161b637681bb4937fd0e5d24122973b0
Showing with 4 additions and 0 deletions.
  1. +3 −0 components/compositing/compositor.rs
  2. +1 −0 components/servo/lib.rs
@@ -1214,6 +1214,9 @@ impl<Window: WindowMethods> IOCompositor<Window> {
&self.embedder_coordinates.framebuffer.to_untyped(),
);

self.window.gl().clear_color(1.0, 1.0, 1.0, 0.0);
self.window.gl().clear(gleam::gl::COLOR_BUFFER_BIT);

// Paint the scene.
// TODO(gw): Take notice of any errors the renderer returns!
self.webrender.render(size).ok();
@@ -242,6 +242,7 @@ where
},
renderer_kind: renderer_kind,
enable_subpixel_aa: opts.enable_subpixel_text_antialiasing,
clear_color: None,
..Default::default()
},
None,

0 comments on commit a1a20ee

Please sign in to comment.
You can’t perform that action at this time.