win_opengl: small change to last fix, no need to subtract twice.

This commit is contained in:
ts-korhonen
2021-05-08 14:27:48 +03:00
committed by David Hrdlička
parent 0ded806fe9
commit 1bb63e232a

View File

@@ -626,7 +626,7 @@ static void opengl_main(void* param)
} }
/* Clip to height. y2 can be out-of-bounds. */ /* 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) if (!GLAD_GL_ARB_buffer_storage)
{ {