Godot Engine – Multi-platform 2D and 3D game engine
Vulkan: Fix Swappy frame pacing black screen on Android Emulator
cpl-s-matsuyamac5b85ec6a734
diff --git a/drivers/vulkan/rendering_device_driver_vulkan.cpp b/drivers/vulkan/rendering_device_driver_vulkan.cppindex f60641ed091..85fe3a24725 100644--- a/drivers/vulkan/rendering_device_driver_vulkan.cpp+++ b/drivers/vulkan/rendering_device_driver_vulkan.cpp@@ -3163,9 +3163,8 @@ RDD::CommandQueueID RenderingDeviceDriverVulkan::command_queue_create(CommandQue#if defined(SWAPPY_FRAME_PACING_ENABLED)if (swappy_frame_pacer_enable) {- VkQueue selected_queue;- vkGetDeviceQueue(vk_device, family_index, picked_queue_index, &selected_queue);- SwappyVk_setQueueFamilyIndex(vk_device, selected_queue, family_index);+ // Reuse the stored VkQueue handle; the Android Emulator's gfxstream driver returns a different one from each vkGetDeviceQueue() call.+ SwappyVk_setQueueFamilyIndex(vk_device, queue_family[picked_queue_index].queue, family_index);}#endif