Bug 1948882 - Fix incorrect opaque swapchain layer on empty composites of transparent windows r=gfx-reviewers,lsalzman

Differential Revision: https://phabricator.services.mozilla.com/D239476
This commit is contained in:
Glenn Watson
2025-02-25 19:30:48 +00:00
parent d6cb98556c
commit d98edb9c81

View File

@@ -3643,10 +3643,10 @@ impl Renderer {
}
}
// If no tiles were present, add an empty layer to force
// a composite that clears the screen, to match existing
// semantics.
if input_layers.is_empty() {
// If no tiles were present, and we expect an opaque window,
// ddd an empty layer to force a composite that clears the screen,
// to match existing semantics.
if window_is_opaque && input_layers.is_empty() {
input_layers.push(CompositorInputLayer {
usage: CompositorSurfaceUsage::Content,
is_opaque: true,