Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8c9b943 authored by Ian Elliott's avatar Ian Elliott Committed by Gerrit Code Review
Browse files

Merge "swapchain: Do not return MAILBOX for VK_GOOGLE_surfaceless_query"

parents 63cb8d02 7e36114e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -924,8 +924,7 @@ VkResult GetPhysicalDeviceSurfacePresentModesKHR(VkPhysicalDevice pdev,
        // VK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR and
        // VK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR.  We technically cannot
        // know if VK_PRESENT_MODE_SHARED_MAILBOX_KHR is supported without a
        // surface, and that cannot be relied upon.
        present_modes.push_back(VK_PRESENT_MODE_MAILBOX_KHR);
        // surface, and that cannot be relied upon.  Therefore, don't return it.
        present_modes.push_back(VK_PRESENT_MODE_FIFO_KHR);
    } else {
        ANativeWindow* window = SurfaceFromHandle(surface)->window.get();