From ce823e4b08ecf2afbccb9a6be3e1ca1a72726e6e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 28 Oct 2021 21:45:15 +0530 Subject: [PATCH] Fix incorrect scissoring for window resize counter It uses draw_graphics, which uses a scissor, but the scissor was set by the last call to draw_cells() which is not called during a resize, leaving us with an incorrect scissor. Fixes #4160 --- kitty/shaders.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/shaders.c b/kitty/shaders.c index 401861e78..598ed91fc 100644 --- a/kitty/shaders.c +++ b/kitty/shaders.c @@ -474,6 +474,7 @@ draw_centered_alpha_mask(OSWindow *os_window, size_t screen_width, size_t screen } else { BLEND_ONTO_OPAQUE; } + glScissor(0, 0, screen_width, screen_height); draw_graphics(GRAPHICS_ALPHA_MASK_PROGRAM, 0, os_window->gvao_idx, &data, 0, 1); glDisable(GL_BLEND); }