diff options
author | 2021-06-10 18:24:42 +0700 | |
---|---|---|
committer | 2021-06-10 18:24:42 +0700 | |
commit | f6ff87bb8f47b60672dcffbdd3a4d0e83cfb748f (patch) | |
tree | 4cc05f745d64aba0ce38e08815d75ea4c8d684e7 | |
parent | 0e70b11e00e4d8517419a5f09490c9502827d35b (diff) | |
parent | 56f673d819b241336f7cd041d990d47bdb2307b5 (diff) | |
download | iced-f6ff87bb8f47b60672dcffbdd3a4d0e83cfb748f.tar.gz iced-f6ff87bb8f47b60672dcffbdd3a4d0e83cfb748f.tar.bz2 iced-f6ff87bb8f47b60672dcffbdd3a4d0e83cfb748f.zip |
Merge pull request #818 from thenlevy/check_bounds
Prevent scissor_rect region to be larger than the target texture in wgpu::Backend::flush
-rw-r--r-- | core/src/rectangle.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/rectangle.rs b/core/src/rectangle.rs index 0a7f5fe2..4e082051 100644 --- a/core/src/rectangle.rs +++ b/core/src/rectangle.rs @@ -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, } } } |