win_opengl: small change to last fix, no need to subtract twice.
This commit is contained in:
committed by
David Hrdlička
parent
0ded806fe9
commit
1bb63e232a
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user