From 47c097bf05f8caf0fefaa3330008802a262085be Mon Sep 17 00:00:00 2001 From: Robert Konrad Date: Wed, 8 Nov 2023 16:10:04 +0100 Subject: [PATCH] Temporary fix for Vulkan Android glitches --- .../Vulkan/Sources/kinc/backend/graphics5/Vulkan.c.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Backends/Graphics5/Vulkan/Sources/kinc/backend/graphics5/Vulkan.c.h b/Backends/Graphics5/Vulkan/Sources/kinc/backend/graphics5/Vulkan.c.h index 16d63b77a..786dc64c2 100644 --- a/Backends/Graphics5/Vulkan/Sources/kinc/backend/graphics5/Vulkan.c.h +++ b/Backends/Graphics5/Vulkan/Sources/kinc/backend/graphics5/Vulkan.c.h @@ -1101,6 +1101,10 @@ void kinc_g5_begin(kinc_g5_render_target_t *renderTarget, int window_index) { } void kinc_g5_end(int window) { +#ifdef KORE_ANDROID + vkDeviceWaitIdle(vk_ctx.device); +#endif + VkPresentInfoKHR present = {0}; present.sType = VK_STRUCTURE_TYPE_PRESENT_INFO_KHR; present.pNext = NULL;