Skip to content

Commit

Permalink
Merge pull request #102 from PixelboysTM/PixelboysTM/issue77
Browse files Browse the repository at this point in the history
Pixelboys tm/issue77
  • Loading branch information
Yatekii authored Sep 8, 2023
2 parents 7987e07 + 2ac495f commit bb86d8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Per Keep a Changelog there are 6 main categories of changes:

## Unreleased

- Internal: Fixed Scissor-Rect to not span across Framebuffersize, by limiting to framebuffer width. @PixelboysTM

## v0.24.0

Released 2023-08-02
Expand Down
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] - clip_rect[0]).abs().ceil() as u32,
(clip_rect[3] - clip_rect[1]).abs().ceil() 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,
);

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

0 comments on commit bb86d8c

Please sign in to comment.