mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
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:
parent
b256fc294a
commit
59f6ac9ee1
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user