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:
Kovid Goyal 2021-10-28 21:45:15 +05:30
parent 21830048c9
commit ce823e4b08
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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);
}