diff --git a/filament/backend/src/vulkan/VulkanContext.cpp b/filament/backend/src/vulkan/VulkanContext.cpp index c239cfe6c3..34fb501692 100644 --- a/filament/backend/src/vulkan/VulkanContext.cpp +++ b/filament/backend/src/vulkan/VulkanContext.cpp @@ -366,13 +366,13 @@ void createSwapChain(VulkanContext& context, VulkanSurfaceContext& surfaceContex // https://android-developers.googleblog.com/2020/02/handling-device-orientation-efficiently.html .preTransform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR, - // TODO: Setting the oldSwapchain parameter would avoid exiting and re-entering - // exclusive mode, which could result in a smoother orientation change. - .oldSwapchain = VK_NULL_HANDLE, - .compositeAlpha = compositeAlpha, .presentMode = VK_PRESENT_MODE_FIFO_KHR, - .clipped = VK_TRUE + .clipped = VK_TRUE, + + // TODO: Setting the oldSwapchain parameter would avoid exiting and re-entering + // exclusive mode, which could result in a smoother orientation change. + .oldSwapchain = VK_NULL_HANDLE }; VkSwapchainKHR swapchain; VkResult result = vkCreateSwapchainKHR(context.device, &createInfo, VKALLOC, &swapchain);