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

Commit ae6c5aab authored by Yiwei Zhang's avatar Yiwei Zhang
Browse files

swapchain: fix to initialize extra_mutable_formats_ptr to nullptr

Bug: b/424626873
Test: presubmit
Flag: EXEMPT bug fix
Change-Id: I5047d6fa3e9b98310f9a3a888f362d7516135cf7
parent f68c5f1c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1922,7 +1922,7 @@ VkResult CreateSwapchainKHR(VkDevice device,
    VkImageFormatListCreateInfo extra_mutable_formats = {
        .sType = VK_STRUCTURE_TYPE_IMAGE_FORMAT_LIST_CREATE_INFO_KHR,
    };
    VkImageFormatListCreateInfo* extra_mutable_formats_ptr;
    VkImageFormatListCreateInfo* extra_mutable_formats_ptr = nullptr;

    // Look through the create_info pNext chain passed to createSwapchainKHR
    // for an image compression control struct.