зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
b256fc294a
Коммит
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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче