shithub: cstory

Download patch

ref: dad9dd6421c7be63987c7a05cd034a73b51cde3f
parent: c2bc6c5ec2a69b87d6d86b90dbd96221879ce644
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sat Sep 26 19:19:17 EDT 2020

Correct oversized OpenGL upscaled framebuffer

--- a/src/Backends/Rendering/OpenGL3.cpp
+++ b/src/Backends/Rendering/OpenGL3.cpp
@@ -1078,7 +1078,7 @@
 
 	if ((window_rect.right - window_rect.left) % framebuffer_surface->width != 0 || (window_rect.bottom - window_rect.top) % framebuffer_surface->height != 0)
 	{
-		upscaled_framebuffer_surface = CreateSurface(upscaled_framebuffer_width, upscaled_framebuffer_height * upscale_factor, true);
+		upscaled_framebuffer_surface = CreateSurface(upscaled_framebuffer_width, upscaled_framebuffer_height, true);
 
 		if (upscaled_framebuffer_surface == NULL)
 			Backend_PrintError("Couldn't regenerate upscaled framebuffer");