From 7473a1c4b9b9e1e579ac209c6a57930e5225a981 Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 13 Sep 2021 21:28:44 +0200 Subject: [PATCH] Fixed the OpenGL 3.3 renderer. --- src/win/win_opengl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/win/win_opengl.c b/src/win/win_opengl.c index 1d8239af8..dec6436d0 100644 --- a/src/win/win_opengl.c +++ b/src/win/win_opengl.c @@ -819,7 +819,7 @@ static void opengl_blit(int x, int y, int y1, int y2, int w, int h) return; } - for (yy = y1; yy < y2; yy++) { + for (yy = 0; yy < h; yy++) { if ((y + yy) >= 0 && (y + yy) < buffer32->h) memcpy(blit_info[write_pos].buffer + (yy * w * 4), &(((uint32_t *) buffer32->line[y + yy])[x]), w * 4); @@ -827,8 +827,8 @@ static void opengl_blit(int x, int y, int y1, int y2, int w, int h) video_blit_complete(); - blit_info[write_pos].y1 = y1; - blit_info[write_pos].y2 = y2; + blit_info[write_pos].y1 = 0; + blit_info[write_pos].y2 = h - 1; blit_info[write_pos].w = w; blit_info[write_pos].h = h;