From 6ddf6784abddd17885b00a7c0184c839a8be443e Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 1 Nov 2020 22:40:56 +1000 Subject: [PATCH] GPU/OpenGL: Fix edge blending when texture filtering --- src/core/gpu_hw_opengl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/gpu_hw_opengl.cpp b/src/core/gpu_hw_opengl.cpp index 6015a89c2..7400c324a 100644 --- a/src/core/gpu_hw_opengl.cpp +++ b/src/core/gpu_hw_opengl.cpp @@ -588,7 +588,8 @@ void GPU_HW_OpenGL::DrawBatchVertices(BatchRenderMode render_mode, u32 base_vert void GPU_HW_OpenGL::SetBlendMode() { - if (m_current_transparency_mode == TransparencyMode::Disabled || m_current_render_mode == BatchRenderMode::OnlyOpaque) + if (m_texture_filtering == GPUTextureFilter::Nearest && (m_current_transparency_mode == TransparencyMode::Disabled || + m_current_render_mode == BatchRenderMode::OnlyOpaque)) { glDisable(GL_BLEND); }