From e9d0b5b90fa92eb29ccb207c59a919909cad04bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 23 Jul 2020 22:23:55 +0200 Subject: [PATCH] D3D11 - don't forget to unbind secondary texture when we need to unbind. Fixes Patapon 3 error reported in #13132. --- 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 def69c626a..4b342eb296 100644 --- a/GPU/D3D11/TextureCacheD3D11.cpp +++ b/GPU/D3D11/TextureCacheD3D11.cpp @@ -147,8 +147,8 @@ void TextureCacheD3D11::ReleaseTexture(TexCacheEntry *entry, bool delete_them) { void TextureCacheD3D11::ForgetLastTexture() { InvalidateLastTexture(); gstate_c.Dirty(DIRTY_TEXTURE_PARAMS); - ID3D11ShaderResourceView *nullTex = nullptr; - context_->PSSetShaderResources(0, 1, &nullTex); + ID3D11ShaderResourceView *nullTex[2]{}; + context_->PSSetShaderResources(0, 2, nullTex); } void TextureCacheD3D11::InvalidateLastTexture(TexCacheEntry *entry) {