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

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

vkGetDeviceQueue2: fix the NULL check

Contents of VkQueue* needs to be checked against VK_NULL_HANDLE

Test: dEQP-VK.api.device_init.create_device_queue2*
Bug: b/72867433
Change-Id: I39643a75497ef4e59823c6bb90760d34b81f5865
parent eb7bdbcb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1170,8 +1170,7 @@ void GetDeviceQueue2(VkDevice device,
    const auto& data = GetData(device);

    data.driver.GetDeviceQueue2(device, pQueueInfo, pQueue);
    if (pQueue != VK_NULL_HANDLE)
        SetData(*pQueue, data);
    if (*pQueue != VK_NULL_HANDLE) SetData(*pQueue, data);
}

VKAPI_ATTR VkResult