From c3897fef4c2c73214768aab9d6afebe9c5340dbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sat, 24 Jan 2026 10:42:43 +0100 Subject: [PATCH] Finish up #21151 See #21151 --- GPU/D3D11/DrawEngineD3D11.cpp | 4 ++++ GPU/GLES/DrawEngineGLES.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/GPU/D3D11/DrawEngineD3D11.cpp b/GPU/D3D11/DrawEngineD3D11.cpp index 40ff38dff5..5dc9da2646 100644 --- a/GPU/D3D11/DrawEngineD3D11.cpp +++ b/GPU/D3D11/DrawEngineD3D11.cpp @@ -314,7 +314,11 @@ void DrawEngineD3D11::Flush() { } if (textureNeedsApply) { + gstate_c.dstSquared = false; textureCache_->ApplyTexture(); + if (gstate_c.dstSquared) { + gstate_c.Dirty(DIRTY_BLEND_STATE); + } } // Need to ApplyDrawState after ApplyTexture because depal can launch a render pass and that wrecks the state. diff --git a/GPU/GLES/DrawEngineGLES.cpp b/GPU/GLES/DrawEngineGLES.cpp index 43d0885fd0..133a77fdf4 100644 --- a/GPU/GLES/DrawEngineGLES.cpp +++ b/GPU/GLES/DrawEngineGLES.cpp @@ -398,7 +398,11 @@ void DrawEngineGLES::Flush() { if (textureNeedsApply) { gstate_c.pixelMapped = result.pixelMapped; + gstate_c.dstSquared = false; textureCache_->ApplyTexture(); + if (gstate_c.dstSquared) { + gstate_c.Dirty(DIRTY_BLEND_STATE); + } gstate_c.pixelMapped = false; }