- remove tracking translation in VkHardwareTexture

- only reset the descriptors when recreating the samplers
This commit is contained in:
Magnus Norddahl 2019-03-17 22:27:48 +01:00
commit bf85ad4b6a
4 changed files with 13 additions and 3 deletions

View file

@ -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();
}