shithub: cstory

Download patch

ref: 4517c9be9effa6ee98d79df330f20a22e04b5d58
parent: c12149b96ea1d519302af1f3e7a178e97b0ff9d6
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun Sep 13 15:37:01 EDT 2020

Fix incorrect upscaled framebuffer size

--- a/src/Backends/Rendering/SDLTexture.cpp
+++ b/src/Backends/Rendering/SDLTexture.cpp
@@ -446,7 +446,7 @@
 		SDL_DestroyTexture(upscaled_framebuffer.texture);
 
 	SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear");
-	upscaled_framebuffer.texture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA32, SDL_TEXTUREACCESS_TARGET, upscaled_framebuffer.width, upscaled_framebuffer.height * upscale_factor);
+	upscaled_framebuffer.texture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA32, SDL_TEXTUREACCESS_TARGET, upscaled_framebuffer.width, upscaled_framebuffer.height);
 	SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "nearest");
 
 	if (upscaled_framebuffer.texture == NULL)