diff --git a/components/compositing/compositor.rs b/components/compositing/compositor.rs index 996d01a164f..8a413a57b3d 100644 --- a/components/compositing/compositor.rs +++ b/components/compositing/compositor.rs @@ -1214,6 +1214,9 @@ impl IOCompositor { &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(); diff --git a/components/servo/lib.rs b/components/servo/lib.rs index bdf56372dff..44eb62e51fc 100644 --- a/components/servo/lib.rs +++ b/components/servo/lib.rs @@ -242,6 +242,7 @@ where }, renderer_kind: renderer_kind, enable_subpixel_aa: opts.enable_subpixel_text_antialiasing, + clear_color: None, ..Default::default() }, None,