From 0571bf67e29320ea8bf154b3d442de0afacbb5a5 Mon Sep 17 00:00:00 2001 From: Connor Fitzgerald Date: Tue, 26 Jul 2022 19:09:19 -0400 Subject: [PATCH] Reset the scissor rect after rendering onto a renderpass (#1858) --- egui-wgpu/src/renderer.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/egui-wgpu/src/renderer.rs b/egui-wgpu/src/renderer.rs index e772253affa..cf42766b609 100644 --- a/egui-wgpu/src/renderer.rs +++ b/egui-wgpu/src/renderer.rs @@ -451,6 +451,8 @@ impl RenderPass { } } } + + rpass.set_scissor_rect(0, 0, size_in_pixels[0], size_in_pixels[1]); } /// Should be called before `execute()`.