Skip to content

Commit

Permalink
Bug 1889600 - Don't produce commands if all of the quad segments are …
Browse files Browse the repository at this point in the history
…discarded. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D206664
  • Loading branch information
nical committed Apr 4, 2024
1 parent d56e700 commit f5cae1e
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions gfx/wr/webrender/src/quad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,15 +441,17 @@ pub fn push_quad(
}
}

add_composite_prim(
pattern,
prim_instance_index,
unclipped_surface_rect.cast_unit(),
quad_flags,
frame_state,
targets,
&scratch.quad_segments,
);
if !scratch.quad_segments.is_empty() {
add_composite_prim(
pattern,
prim_instance_index,
unclipped_surface_rect.cast_unit(),
quad_flags,
frame_state,
targets,
&scratch.quad_segments,
);
}
}
}
}
Expand Down

0 comments on commit f5cae1e

Please sign in to comment.