OSDN Git Service

vulkan: return OUT_OF_DATE from GetSwapchainStatus if not current
authorChris Forbes <chrisforbes@google.com>
Thu, 19 Jan 2017 23:50:17 +0000 (12:50 +1300)
committerChris Forbes <chrisforbes@google.com>
Fri, 20 Jan 2017 02:04:47 +0000 (15:04 +1300)
commit4e18ba82847bdb31504a1b005370f8df931f959d
tree012842fc51aefe310468ac4ab20ef3cdcc7e32a5
parentc48f42c86bfba395430bcdd60707458f519b2ca2
vulkan: return OUT_OF_DATE from GetSwapchainStatus if not current

We don't yet have good ways to detect other ways in which the swapchain
may have gone bad, but it's easy to detect the case where the swapchain
is not current for the surface it targets.

Test: build
Change-Id: Id882a4a699d65f323e8a5e181f0e25e903039f21
vulkan/libvulkan/swapchain.cpp