- apply vk_hdr immediately and delay initial swapchain creation until first image needs to be acquired
This commit is contained in:
parent
db4310ca6b
commit
095ea3ce76
4 changed files with 13 additions and 28 deletions
|
|
@ -549,11 +549,7 @@ uint32_t VulkanFrameBuffer::GetCaps()
|
|||
|
||||
void VulkanFrameBuffer::SetVSync(bool vsync)
|
||||
{
|
||||
if (swapChain->vsync != vsync)
|
||||
{
|
||||
swapChain.reset();
|
||||
swapChain = std::make_unique<VulkanSwapChain>(device);
|
||||
}
|
||||
// This is handled in VulkanSwapChain::AcquireImage.
|
||||
}
|
||||
|
||||
void VulkanFrameBuffer::CleanForRestart()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue