mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-30 15:05:42 -04: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…
x
Reference in New Issue
Block a user