mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 06:15:38 +00:00
GPU/OpenGL: Fix edge blending when texture filtering
This commit is contained in:
parent
ad6a4d4ec0
commit
6ddf6784ab
|
@ -588,7 +588,8 @@ void GPU_HW_OpenGL::DrawBatchVertices(BatchRenderMode render_mode, u32 base_vert
|
||||||
|
|
||||||
void GPU_HW_OpenGL::SetBlendMode()
|
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);
|
glDisable(GL_BLEND);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue