From 57e3ab71d976e06d58313b4abfc8970d811cc69d Mon Sep 17 00:00:00 2001 From: Aaron Kling Date: Tue, 22 Dec 2020 17:28:55 -0600 Subject: [PATCH] android: retro_sleep build fix --- gfx/drivers_context/android_vk_ctx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gfx/drivers_context/android_vk_ctx.c b/gfx/drivers_context/android_vk_ctx.c index 695c800e78..50f721e38b 100644 --- a/gfx/drivers_context/android_vk_ctx.c +++ b/gfx/drivers_context/android_vk_ctx.c @@ -262,7 +262,9 @@ static void android_gfx_ctx_vk_swap_buffers(void *data) { and->vk.context.has_acquired_swapchain = false; if (and->vk.swapchain == VK_NULL_HANDLE) + { retro_sleep(10); + } else vulkan_present(&and->vk, and->vk.context.current_swapchain_index); }