layers: Gitlab 126, Fix for swapchain layer which was checking wrong pointer
authorNorbert Nopper <norbert@nopper.tv>
Mon, 11 Jan 2016 07:55:57 +0000 (08:55 +0100)
committerMark Lobodzinski <mark@lunarg.com>
Mon, 11 Jan 2016 16:07:13 +0000 (09:07 -0700)
layers/swapchain.cpp

index b2a8ec7..f84f48f 100644 (file)
@@ -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];
                     }