mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-27 03:11:46 +00:00
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
This commit is contained in:
parent
21830048c9
commit
ce823e4b08
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue