summaryrefslogtreecommitdiffstats
path: root/wgpu
diff options
context:
space:
mode:
Diffstat (limited to 'wgpu')
-rw-r--r--wgpu/src/renderer.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/wgpu/src/renderer.rs b/wgpu/src/renderer.rs
index 1d40c215..c8e1e10d 100644
--- a/wgpu/src/renderer.rs
+++ b/wgpu/src/renderer.rs
@@ -265,8 +265,8 @@ impl Renderer {
if width > 0.0 && height > 0.0 {
let clip_layer = Layer::new(
Rectangle {
- x: x.max(0.0).ceil() as u32,
- y: y.max(0.0).ceil() as u32,
+ x: x.max(0.0).floor() as u32,
+ y: y.max(0.0).floor() as u32,
width: width.ceil() as u32,
height: height.ceil() as u32,
},