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.
This commit is contained in:
Clownacy 2020-09-13 19:38:40 +01:00
parent 4517c9be9e
commit 2f748810bf

View file

@ -452,6 +452,8 @@ void RenderBackend_HandleWindowResize(size_t width, size_t height)
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;