From bd6b8304bd940c5519fdf705698974994d5d1ca1 Mon Sep 17 00:00:00 2001
From: Poly <marynczak.bartlomiej@gmail.com>
Date: Wed, 3 Feb 2021 21:51:11 +0100
Subject: Fix ScissorRect

- Breaks `TODO: Address anti-aliasing adjustments properly`
---
 wgpu/src/quad.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'wgpu/src/quad.rs')

diff --git a/wgpu/src/quad.rs b/wgpu/src/quad.rs
index c1399d53..f8531992 100644
--- a/wgpu/src/quad.rs
+++ b/wgpu/src/quad.rs
@@ -258,12 +258,13 @@ impl Pipeline {
                 );
                 render_pass.set_vertex_buffer(0, self.vertices.slice(..));
                 render_pass.set_vertex_buffer(1, self.instances.slice(..));
+
                 render_pass.set_scissor_rect(
                     bounds.x,
                     bounds.y,
                     bounds.width,
                     // TODO: Address anti-aliasing adjustments properly
-                    bounds.height + 1,
+                    bounds.height,
                 );
 
                 render_pass.draw_indexed(
-- 
cgit