Fix empty scissor rectangle in iced_wgpu::triangle pipeline
This commit is contained in:
parent
ce64dcbfd4
commit
166d350dfc
1 changed files with 4 additions and 0 deletions
|
|
@ -155,6 +155,10 @@ impl Layer {
|
|||
for (index, mesh) in meshes.iter().enumerate() {
|
||||
let clip_bounds = (mesh.clip_bounds() * scale_factor).snap();
|
||||
|
||||
if clip_bounds.width < 1 || clip_bounds.height < 1 {
|
||||
continue;
|
||||
}
|
||||
|
||||
render_pass.set_scissor_rect(
|
||||
clip_bounds.x,
|
||||
clip_bounds.y,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue