Merge pull request #818 from thenlevy/check_bounds
Prevent scissor_rect region to be larger than the target texture in wgpu::Backend::flush
This commit is contained in:
commit
f6ff87bb8f
1 changed files with 2 additions and 2 deletions
|
|
@ -105,8 +105,8 @@ impl Rectangle<f32> {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
x: self.x as u32,
|
x: self.x as u32,
|
||||||
y: self.y as u32,
|
y: self.y as u32,
|
||||||
width: self.width.ceil() as u32,
|
width: self.width as u32,
|
||||||
height: self.height.ceil() as u32,
|
height: self.height as u32,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue