From f31cb4b00dd2ff6dbf2de42587600e5f96cd64ad Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Thu, 8 Nov 2018 22:49:41 +0700 Subject: [PATCH] GraphicsDrawer::drawTexturedRect - always use TexrectDrawer if m_bBGMode enabled. --- src/GraphicsDrawer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GraphicsDrawer.cpp b/src/GraphicsDrawer.cpp index 47ccd2c2..826a8974 100644 --- a/src/GraphicsDrawer.cpp +++ b/src/GraphicsDrawer.cpp @@ -1175,14 +1175,14 @@ void GraphicsDrawer::drawTexturedRect(const TexturedRectParams & _params) DisplayWindow & wnd = dwnd(); TextureCache & cache = textureCache(); const bool bUseBilinear = gDP.otherMode.textureFilter != 0; - const bool bUseTexrectDrawer = (config.generalEmulation.enableNativeResTexrects != 0 || m_bBGMode) + const bool bUseTexrectDrawer = m_bBGMode || ((config.generalEmulation.enableNativeResTexrects != 0) && bUseBilinear && pCurrentCombiner->usesTexture() && (pCurrentBuffer == nullptr || !pCurrentBuffer->m_cfb) && (cache.current[0] != nullptr) // && (cache.current[0] == nullptr || cache.current[0]->format == G_IM_FMT_RGBA || cache.current[0]->format == G_IM_FMT_CI) && ((cache.current[0]->frameBufferTexture == CachedTexture::fbNone && !cache.current[0]->bHDTexture)) - && (cache.current[1] == nullptr || (cache.current[1]->frameBufferTexture == CachedTexture::fbNone && !cache.current[1]->bHDTexture)); + && (cache.current[1] == nullptr || (cache.current[1]->frameBufferTexture == CachedTexture::fbNone && !cache.current[1]->bHDTexture))); f32 scaleX, scaleY; calcCoordsScales(pCurrentBuffer, scaleX, scaleY);