mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
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:
1 parent
3403e28470
commit
e9d0b5b90f
1 file changed
+2
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user