vkswapper: check the error of the presentation for out of date

allows us to resize the swapchain correctly.
This commit is contained in:
Matthew Waters 2016-05-13 15:24:35 +03:00
parent abc1c4fc9a
commit 864a0f453d

View file

@ -981,7 +981,10 @@ reacquire:
present.pResults = &present_err;
err = swapper->QueuePresentKHR (swapper->queue->queue, &present);
if (err == VK_ERROR_OUT_OF_DATE_KHR) {
if (gst_vulkan_error_to_g_error (err, error, "vkQueuePresentKHR") < 0)
goto error;
if (present_err == VK_ERROR_OUT_OF_DATE_KHR) {
GST_DEBUG_OBJECT (swapper, "out of date frame submitted");
if (!_swapchain_resize (swapper, error))