GPUDevice: Fix binding deferred cleared textures

i.e. briefly flashing previous state after reset.
This commit is contained in:
Stenzek
2023-12-14 14:47:15 +10:00
parent 371c58dc72
commit 7e1276fbac
5 changed files with 30 additions and 6 deletions

View File

@ -3250,6 +3250,7 @@ void VulkanDevice::SetTextureSampler(u32 slot, GPUTexture* texture, GPUSampler*
if (T)
{
T->CommitClear();
T->SetUseFenceCounter(GetCurrentFenceCounter());
if (T->GetLayout() != VulkanTexture::Layout::ShaderReadOnly)
{