Bug 1587084 - Fix non-picture-caching path on webrender. r=kvark

The framebuffer clear was accidentally removed due to a rebase
error. We need to clear the framebuffer (and z) here when the
non-picture caching path is active.

Differential Revision: https://phabricator.services.mozilla.com/D48600

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Glenn Watson 2019-10-08 20:44:56 +00:00
parent b256fc294a
commit 59f6ac9ee1

View File

@ -4910,6 +4910,15 @@ impl Renderer {
results,
);
} else {
if clear_framebuffer {
let clear_color = self.clear_color.map(|color| color.to_array());
self.device.bind_draw_target(draw_target);
self.device.enable_depth_write();
self.device.clear_target(clear_color,
Some(1.0),
None);
}
self.draw_color_target(
draw_target,
main_target,