GS/Vulkan: Fix RT being left bound as texture

This commit is contained in:
Stenzek 2023-03-01 20:25:25 +10:00 committed by lightningterror
parent 795741a341
commit 3005ba629f
1 changed files with 2 additions and 3 deletions

View File

@ -3020,9 +3020,8 @@ void GSDeviceVK::RenderHW(GSHWDrawConfig& config)
}
}
// clear texture binding when it's bound to RT or DS
if (!config.tex && m_tfx_textures[0] &&
((!pipe.feedback_loop && config.rt && static_cast<GSTextureVK*>(config.rt)->GetView() == m_tfx_textures[0]) ||
(config.ds && static_cast<GSTextureVK*>(config.ds)->GetView() == m_tfx_textures[0])))
if (!config.tex && ((config.rt && static_cast<GSTextureVK*>(config.rt)->GetView() == m_tfx_textures[0]) ||
(config.ds && static_cast<GSTextureVK*>(config.ds)->GetView() == m_tfx_textures[0])))
{
PSSetShaderResource(0, nullptr, false);
}