We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c7e53a commit e3ad74eCopy full SHA for e3ad74e
webrender/src/picture.rs
@@ -2540,8 +2540,10 @@ impl TileCacheInstance {
2540
CompositorSurfaceKind::Underlay => {
2541
// If a mask is needed, there are some restrictions.
2542
if prim_clip_chain.needs_mask {
2543
- // Need an opaque backdrop.
2544
- if self.backdrop.kind.is_none() {
+ // Need an opaque region behind this prim. The opaque region doesn't
+ // need to span the entire visible region of the TileCacheInstance,
2545
+ // which would set self.backdrop.kind, but that also qualifies.
2546
+ if !self.backdrop.opaque_rect.contains_box(&pic_coverage_rect) {
2547
return Err(UnderlayAlphaBackdrop);
2548
}
2549
0 commit comments