From 9da317b800df530aacd778d63a93214e561cea28 Mon Sep 17 00:00:00 2001 From: Spirrwell Date: Mon, 14 Jun 2021 06:44:02 -0400 Subject: [PATCH] Update colorbuffer and colorbufferWarp samplers in QVk_RecreateSwapchain This is dead code, but hopefully this saves somebody hours of pain and suffering should they decide to use it again. --- ref_vk/vk_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ref_vk/vk_common.c b/ref_vk/vk_common.c index 1f46c34..273f208 100644 --- a/ref_vk/vk_common.c +++ b/ref_vk/vk_common.c @@ -2192,6 +2192,8 @@ void QVk_RecreateSwapchain() vk_scissor.extent = vk_swapchain.extent; DestroyDrawBuffers(); CreateDrawBuffers(); + QVk_UpdateTextureSampler(&vk_colorbuffer, S_NEAREST); + QVk_UpdateTextureSampler(&vk_colorbufferWarp, S_NEAREST); VK_VERIFY(CreateImageViews()); VK_VERIFY(CreateFramebuffers()); }