From 8d23c5ecfb8cafdae2d01f22361f3fcf125b428f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 5 Aug 2022 11:59:16 +0200 Subject: [PATCH] Fixy fix --- GPU/D3D11/TextureCacheD3D11.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPU/D3D11/TextureCacheD3D11.cpp b/GPU/D3D11/TextureCacheD3D11.cpp index 4a13df80b6..232ecd03d0 100644 --- a/GPU/D3D11/TextureCacheD3D11.cpp +++ b/GPU/D3D11/TextureCacheD3D11.cpp @@ -415,8 +415,8 @@ void TextureCacheD3D11::ApplyTextureFramebuffer(VirtualFramebuffer *framebuffer, context_->PSSetShaderResources(0, 1, &nullTexture); // In case the target was used in the last draw call. Happens in Sega Rally. draw_->BindFramebufferAsRenderTarget(depalFBO, { Draw::RPAction::DONT_CARE, Draw::RPAction::DONT_CARE, Draw::RPAction::DONT_CARE }, "ApplyTextureFramebuffer_DepalShader"); // BindAsClutTexture(clutTexture); - context_->PSSetShaderResources(TEX_SLOT_CLUT, 1, &clutTexture); - context_->PSSetSamplers(3, 1, &stockD3D11.samplerPoint2DWrap); + context_->PSSetShaderResources(1, 1, &clutTexture); + context_->PSSetSamplers(1, 1, &stockD3D11.samplerPoint2DWrap); draw_->BindFramebufferAsTexture(framebuffer->fbo, 0, depth ? Draw::FB_DEPTH_BIT : Draw::FB_COLOR_BIT, 0); context_->PSSetSamplers(0, 1, &stockD3D11.samplerPoint2DWrap);