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

Commit 6998da03 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Enable VK_KHR_swapchain for instances."

parents 4048c021 d3d887ab
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -407,6 +407,12 @@ VkResult CreateInfoWrapper::SanitizeExtensions() {
    for (uint32_t i = 0; i < ext_count; i++)
        FilterExtension(ext_names[i]);

    // Enable device extensions that contain physical-device commands, so that
    // vkGetInstanceProcAddr will return those physical-device commands.
    if (is_instance_) {
        hook_extensions_.set(ProcHook::KHR_swapchain);
    }

    ext_names = extension_filter_.names;
    ext_count = extension_filter_.name_count;