Skip to content

Commit

Permalink
WR update: draw background before rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrouget committed Mar 22, 2019
1 parent 4dcee2f commit a1a20ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/compositing/compositor.rs
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions components/servo/lib.rs
Expand Up @@ -242,6 +242,7 @@ where
},
renderer_kind: renderer_kind,
enable_subpixel_aa: opts.enable_subpixel_text_antialiasing,
clear_color: None,
..Default::default()
},
None,
Expand Down

0 comments on commit a1a20ee

Please sign in to comment.