mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 07:39:17 +00:00
D3D: Moved setting texture by slot mask into StateManager
This commit is contained in:
parent
764aee6995
commit
5688c27610
3 changed files with 14 additions and 8 deletions
|
@ -174,13 +174,7 @@ void TextureCache::TCacheEntry::FromRenderTarget(u32 dstAddr, unsigned int dstFo
|
|||
g_renderer->RestoreAPIState();
|
||||
|
||||
// Restore old texture in all previously used slots, if any
|
||||
while (textureSlotMask)
|
||||
{
|
||||
unsigned long index;
|
||||
_BitScanForward(&index, textureSlotMask);
|
||||
D3D::stateman->SetTexture(index, texture->GetSRV());
|
||||
textureSlotMask &= ~(1 << index);
|
||||
}
|
||||
D3D::stateman->SetTextureByMask(textureSlotMask, texture->GetSRV());
|
||||
}
|
||||
|
||||
if (!g_ActiveConfig.bCopyEFBToTexture)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue