- 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:
parent
4aef99632d
commit
3ad9783d8f
10 changed files with 66 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue