From 5187ef5dc61ca7c819120c3c544a9f42d1ebff32 Mon Sep 17 00:00:00 2001 From: elasota Date: Tue, 4 May 2021 18:25:49 -0400 Subject: [PATCH] Use upscale filter at 1.5x and 2.5x --- AerofoilSDL/GpDisplayDriver_SDL_GL2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AerofoilSDL/GpDisplayDriver_SDL_GL2.cpp b/AerofoilSDL/GpDisplayDriver_SDL_GL2.cpp index eee9354..7b7557b 100644 --- a/AerofoilSDL/GpDisplayDriver_SDL_GL2.cpp +++ b/AerofoilSDL/GpDisplayDriver_SDL_GL2.cpp @@ -2713,7 +2713,7 @@ bool GpDisplayDriver_SDL_GL2::InitBackBuffer(uint32_t width, uint32_t height) m_gl.BindFramebuffer(GL_FRAMEBUFFER, 0); } - m_useUpscaleFilter = ((m_pixelScaleX < 2.0f && m_pixelScaleX > 1.0f) || (m_pixelScaleY < 2.0f && m_pixelScaleY > 1.0f)); + m_useUpscaleFilter = (m_pixelScaleX == 1.5f || m_pixelScaleX == 2.5f || m_pixelScaleY == 1.5f || m_pixelScaleY == 2.5f); if (m_useUpscaleFilter) {