summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2016-05-13 15:24:35 +0300
committerMatthew Waters <matthew@centricular.com>2016-05-13 15:24:35 +0300
commit864a0f453d47d731b5cda3b4d7f35b31c07dd38b (patch)
treebce0133c4f8a40ba3271ed4a05528f3341be0e00 /ext
parentabc1c4fc9a8f02ff775bf7f76e19cfe5df59cf37 (diff)
vkswapper: check the error of the presentation for out of date
allows us to resize the swapchain correctly.
Diffstat (limited to 'ext')
-rw-r--r--ext/vulkan/vkswapper.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/vulkan/vkswapper.c b/ext/vulkan/vkswapper.c
index 96e16fffd..d528f0b62 100644
--- a/ext/vulkan/vkswapper.c
+++ b/ext/vulkan/vkswapper.c
@@ -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))