diff options
| author | Tobin Ehlis <tobin@lunarg.com> | 2015-09-08 08:59:48 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobin@lunarg.com> | 2015-09-09 16:32:37 -0600 |
| commit | 19e3be073a1bc9142edc19b771ded51e8aa29c90 (patch) | |
| tree | 709d408ff4983882ee8e0cd1844fc370510cfe15 /layers/screenshot.cpp | |
| parent | 1031f4d90af8ed05a0ff39b07fbabdefff7265d0 (diff) | |
| download | usermoji-19e3be073a1bc9142edc19b771ded51e8aa29c90.tar.xz | |
layers: Fix ScreenShot layer to handle EnumeratePhysicalDevices query count case
Diffstat (limited to 'layers/screenshot.cpp')
| -rw-r--r-- | layers/screenshot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/screenshot.cpp b/layers/screenshot.cpp index 975ffb32..5ee3e6c4 100644 --- a/layers/screenshot.cpp +++ b/layers/screenshot.cpp @@ -354,7 +354,7 @@ VK_LAYER_EXPORT VkResult VKAPI vkEnumeratePhysicalDevices( VkLayerInstanceDispatchTable* pTable = instance_dispatch_table(instance); result = pTable->EnumeratePhysicalDevices(instance, pPhysicalDeviceCount, pPhysicalDevices); - if (result==VK_SUCCESS && *pPhysicalDeviceCount > 0) + if (result==VK_SUCCESS && *pPhysicalDeviceCount > 0 && pPhysicalDevices) { for (uint32_t i=0; i<*pPhysicalDeviceCount ; i++) { |
