- remove tracking translation in VkHardwareTexture
- only reset the descriptors when recreating the samplers
This commit is contained in:
parent
2429eba8f6
commit
bf85ad4b6a
4 changed files with 13 additions and 3 deletions
|
|
@ -643,13 +643,18 @@ IDataBuffer *VulkanFrameBuffer::CreateDataBuffer(int bindingpoint, bool ssbo)
|
|||
return buffer;
|
||||
}
|
||||
|
||||
void VulkanFrameBuffer::SetTextureFilterMode()
|
||||
{
|
||||
TextureFilterChanged();
|
||||
}
|
||||
|
||||
void VulkanFrameBuffer::TextureFilterChanged()
|
||||
{
|
||||
if (mSamplerManager)
|
||||
{
|
||||
// Destroy the texture descriptors as they used the old samplers
|
||||
for (VkHardwareTexture *cur = VkHardwareTexture::First; cur; cur = cur->Next)
|
||||
cur->Reset();
|
||||
cur->ResetDescriptors();
|
||||
|
||||
mSamplerManager->SetTextureFilterMode();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue