Skip to content

Commit

Permalink
Merge pull request #818 from thenlevy/check_bounds
Browse files Browse the repository at this point in the history
Prevent scissor_rect region to be larger than the target texture in wgpu::Backend::flush
  • Loading branch information
hecrj authored Jun 10, 2021
2 parents 0e70b11 + 56f673d commit f6ff87b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/rectangle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ impl Rectangle<f32> {
Rectangle {
x: self.x as u32,
y: self.y as u32,
width: self.width.ceil() as u32,
height: self.height.ceil() as u32,
width: self.width as u32,
height: self.height as u32,
}
}
}
Expand Down

0 comments on commit f6ff87b

Please sign in to comment.