D3D11 - don't forget to unbind secondary texture when we need to unbind.

Fixes Patapon 3 error reported in #13132.
This commit is contained in:
Henrik Rydgård committed 2020-07-23 22:23:55 +02:00
1 parent 3403e28470
commit e9d0b5b90f
1 file changed
+2 -2
+2 -2
View File
@@ -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) {