Skip to content

Commit

Permalink
Merge pull request #103 from Calcoph/master
Browse files Browse the repository at this point in the history
fix  #99
  • Loading branch information
Yatekii authored Sep 10, 2023
2 parents bb86d8c + a0e8679 commit 89394e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -730,8 +730,8 @@ impl Renderer {
let scissors = (
clip_rect[0].max(0.0).floor() as u32,
clip_rect[1].max(0.0).floor() as u32,
(clip_rect[2].min(fb_size[0]) - clip_rect[0]).abs().ceil() as u32,
(clip_rect[3].min(fb_size[1]) - clip_rect[1]).abs().ceil() as u32,
(clip_rect[2].min(fb_size[0]) - clip_rect[0].max(0.0)).abs().ceil() as u32,
(clip_rect[3].min(fb_size[1]) - clip_rect[1].max(0.0)).abs().ceil() as u32,
);

// XXX: Work-around for wgpu issue [1] by only issuing draw
Expand Down

0 comments on commit 89394e0

Please sign in to comment.