- fixed the hardware rendering precacher not to evict secondary layers of multi-layer textures.

It will now check all layers of a material.
Additionally it will also delete all descriptor sets of Vulkan hardware textures before precaching to make sure that nothing here can accidentally still reference a deleted texture.
This commit is contained in:
Christoph Oelckers 2019-03-21 21:57:39 +01:00
commit 3ad9783d8f
10 changed files with 66 additions and 7 deletions

View file

@ -672,6 +672,13 @@ void VulkanFrameBuffer::TextureFilterChanged()
}
}
void VulkanFrameBuffer::StartPrecaching()
{
// Destroy the texture descriptors to avoid problems with potentially stale textures.
for (VkHardwareTexture *cur = VkHardwareTexture::First; cur; cur = cur->Next)
cur->ResetDescriptors();
}
void VulkanFrameBuffer::BlurScene(float amount)
{
if (mPostprocess)