diff options
| author | Ian Elliott <ianelliott@google.com> | 2016-02-04 15:34:59 -0700 |
|---|---|---|
| committer | Ian Elliott <ianelliott@google.com> | 2016-02-04 15:34:59 -0700 |
| commit | 13cc3e7254bad900fd430c2c853af6163fe9ac23 (patch) | |
| tree | c7203f3c8375c7a5fb0fdf80c3e4215b511443d5 | |
| parent | 4f8b69944fdc15150a783a49f1c6b2118b50f151 (diff) | |
| download | usermoji-13cc3e7254bad900fd430c2c853af6163fe9ac23.tar.xz | |
layers: Fix vkEnumeratePhysicalDevices()--was always returning an error.
| -rw-r--r-- | layers/swapchain.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/layers/swapchain.cpp b/layers/swapchain.cpp index b3f5366e..3edbba72 100644 --- a/layers/swapchain.cpp +++ b/layers/swapchain.cpp @@ -1123,11 +1123,9 @@ VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkEnumeratePhysicalDevices(VkInst &my_data->physicalDeviceMap[pPhysicalDevices[i]]; } } - loader_platform_thread_unlock_mutex(&globalLock); - return result; } loader_platform_thread_unlock_mutex(&globalLock); - return VK_ERROR_VALIDATION_FAILED_EXT; + return result; } VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkCreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDevice* pDevice) |
