Vulkan: Only use oldSwapchain in response to VK_ERROR_OUT_OF_DATE_KHR

Seems to be required on the latest NV driver, otherwise the presented
images are never shown.
This commit is contained in:
Stenzek
2017-09-16 16:15:20 +10:00
parent cdf34a79f7
commit 4301b8538d
5 changed files with 31 additions and 31 deletions

View File

@ -55,6 +55,7 @@ public:
bool RecreateSurface(void* native_handle);
bool ResizeSwapChain();
bool RecreateSwapChain();
// Change vsync enabled state. This may fail as it causes a swapchain recreation.
bool SetVSync(bool enabled);