From 7fcee8f71c3d75519d9e228dc8bc208257589d85 Mon Sep 17 00:00:00 2001 From: Norbert Nopper Date: Mon, 11 Jan 2016 08:55:57 +0100 Subject: [PATCH] layers: Gitlab 126, Fix for swapchain layer which was checking wrong pointer --- layers/swapchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/swapchain.cpp b/layers/swapchain.cpp index b2a8ec7..f84f48f 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]; } -- 2.7.4