diff options
| author | Jesse Hall <jessehall@google.com> | 2016-05-30 22:40:14 -0700 |
|---|---|---|
| committer | Jesse Hall <jessehall@google.com> | 2016-06-02 10:47:04 -0700 |
| commit | dc22507e6fd6659c886aa1218f7681fd43b74598 (patch) | |
| tree | 06b81076339fd893ed7b314e441437ef1bfe86a8 /opengl/tests/gl_basic/gl_basic.cpp | |
| parent | a101f6a446722697e0ed6afb128829937b90d60a (diff) | |
libvulkan: Slightly better handling of swapchain re-creation
Previously we would fail vkCreateSwapchainKHR if
VkSwapchainCreateInfo::oldSwapchain was used, because we were unable
to dequeue all buffers for the new swapchain from an already-used
native window.
Now we disconnect and re-connect to the native window in order to
fully reset state, and allow us to dequeue all buffers. Additionally,
we tag the old swapchain as out-of-date, so future image acquires and
presents will fail with VK_ERROR_OUT_OF_DATE_KHR on that swapchain.
This is less than ideal, but better than what we had, and the best we
have time to do for N.
Bug: 26927424
Change-Id: Ifaa5048376f72a63ecb1dca3d1ff85dbee2c24d0
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions
