mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
vkswapper: check the error of the presentation for out of date
allows us to resize the swapchain correctly.
This commit is contained in:
parent
abc1c4fc9a
commit
864a0f453d
1 changed files with 4 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue