From 1bb63e232abe0de8f1ad58a18babfe1e560d0768 Mon Sep 17 00:00:00 2001 From: ts-korhonen Date: Sat, 8 May 2021 14:27:48 +0300 Subject: [PATCH] win_opengl: small change to last fix, no need to subtract twice. --- src/win/win_opengl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/win_opengl.c b/src/win/win_opengl.c index 141dd8450..8a181a4c3 100644 --- a/src/win/win_opengl.c +++ b/src/win/win_opengl.c @@ -626,7 +626,7 @@ static void opengl_main(void* param) } /* Clip to height. y2 can be out-of-bounds. */ - int sub_height = MIN(info->y2 - info->y1, info->h - info->y1); + int sub_height = MIN(info->y2, info->h) - info->y1; if (!GLAD_GL_ARB_buffer_storage) {