ref: 2f748810bff975585c55fa5481946c49201f3672
parent: 4517c9be9effa6ee98d79df330f20a22e04b5d58
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun Sep 13 15:38:40 EDT 2020
Disable blending for the upscaled framebuffer I'd set it to RGB24 instead of RGBA32, but I don't know if there'd be a performance penalty.
--- a/src/Backends/Rendering/SDLTexture.cpp
+++ b/src/Backends/Rendering/SDLTexture.cpp
@@ -452,6 +452,8 @@
if (upscaled_framebuffer.texture == NULL)
Backend_PrintError("Couldn't regenerate upscaled framebuffer");
+ SDL_SetTextureBlendMode(upscaled_framebuffer.texture, SDL_BLENDMODE_NONE);
+
// Create rect that forces 4:3 no matter what size the window is
float window_ratio = (float)width / height;
float framebuffer_ratio = (float)upscaled_framebuffer.width / upscaled_framebuffer.height;