commit | 5eb3d3157ab1cf5a499dbb3d540404b28327069f | [log] [tgz] |
---|---|---|
author | Yiwei Zhang <zzyiwei@google.com> | Thu Feb 08 00:19:46 2018 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Thu Feb 08 00:19:46 2018 +0000 |
tree | 71b9b779263ee95af16729b2216c40808b49f01b | |
parent | 274d6182b0220e10a1e48e51159f4e20b24f8770 [diff] | |
parent | f5b9f733d50c0427e8da98b9beea3cf318ee41cc [diff] |
Merge "vkGetDeviceQueue2: fix the NULL check"
diff --git a/vulkan/libvulkan/driver.cpp b/vulkan/libvulkan/driver.cpp index 1fceb4a..a9d473d 100644 --- a/vulkan/libvulkan/driver.cpp +++ b/vulkan/libvulkan/driver.cpp
@@ -1170,8 +1170,7 @@ 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