diff options
| author | Norbert Nopper <norbert@nopper.tv> | 2016-01-11 08:55:57 +0100 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2016-01-11 09:07:13 -0700 |
| commit | 7fcee8f71c3d75519d9e228dc8bc208257589d85 (patch) | |
| tree | d91c7b8014b9004affa5ce895438f6e86747d2b1 | |
| parent | c7f309aae4a3c1178999a73119474aadd08ca253 (diff) | |
| download | usermoji-7fcee8f71c3d75519d9e228dc8bc208257589d85.tar.xz | |
layers: Gitlab 126, Fix for swapchain layer which was checking wrong pointer
| -rw-r--r-- | layers/swapchain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/swapchain.cpp b/layers/swapchain.cpp index b2a8ec7f..f84f48f9 100644 --- a/layers/swapchain.cpp +++ b/layers/swapchain.cpp @@ -1149,7 +1149,7 @@ VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfacePresent pPhysicalDevice->presentModeCount = *pPresentModeCount; pPhysicalDevice->pPresentModes = (VkPresentModeKHR *) malloc(*pPresentModeCount * sizeof(VkPresentModeKHR)); - if (pPhysicalDevice->pSurfaceFormats) { + if (pPhysicalDevice->pPresentModes) { for (uint32_t i = 0 ; i < *pPresentModeCount ; i++) { pPhysicalDevice->pPresentModes[i] = pPresentModes[i]; } |
