Skip to content

Commit

Permalink
Update colorbuffer and colorbufferWarp samplers in QVk_RecreateSwapchain
Browse files Browse the repository at this point in the history
This is dead code, but hopefully this saves somebody hours of pain and suffering should they decide to use it again.
  • Loading branch information
Spirrwell committed Jun 14, 2021
1 parent 4ca926d commit 9da317b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ref_vk/vk_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 9da317b

Please sign in to comment.