diff options
| author | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-04-20 12:48:54 -0600 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-04-22 10:48:24 -0600 |
| commit | 5cc1364e4e7718f95a0384c3084eb3b2a1ceb7f5 (patch) | |
| tree | bc17b8cc3105c64cdb81499cc813a45ef2f62a4b | |
| parent | c56c36a8fef8868c742c2d41cbbafdc6181c9a61 (diff) | |
| download | usermoji-5cc1364e4e7718f95a0384c3084eb3b2a1ceb7f5.tar.xz | |
loader: Make sure max layer count is set properly
| -rw-r--r-- | loader/loader.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/loader/loader.c b/loader/loader.c index 3325a109..7f9a9b39 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -1194,10 +1194,9 @@ LOADER_EXPORT VkResult VKAPI vkDestroyInstance( } LOADER_EXPORT VkResult VKAPI vkEnumeratePhysicalDevices( - - VkInstance instance, - uint32_t* pPhysicalDeviceCount, - VkPhysicalDevice* pPhysicalDevices) + VkInstance instance, + uint32_t* pPhysicalDeviceCount, + VkPhysicalDevice* pPhysicalDevices) { struct loader_instance *ptr_instance = (struct loader_instance *) instance; struct loader_icd *icd; @@ -1232,6 +1231,7 @@ LOADER_EXPORT VkResult VKAPI vkEnumeratePhysicalDevices( VkBaseLayerObject * wrapped_gpus; PFN_vkGetProcAddr get_proc_addr = icd->scanned_icds->GetProcAddr; + n = *pPhysicalDeviceCount; res = icd->scanned_icds->EnumeratePhysicalDevices( icd->scanned_icds->instance, &n, |
