aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Nopper <norbert@nopper.tv>2016-01-11 08:55:57 +0100
committerMark Lobodzinski <mark@lunarg.com>2016-01-11 09:07:13 -0700
commit7fcee8f71c3d75519d9e228dc8bc208257589d85 (patch)
treed91c7b8014b9004affa5ce895438f6e86747d2b1
parentc7f309aae4a3c1178999a73119474aadd08ca253 (diff)
downloadusermoji-7fcee8f71c3d75519d9e228dc8bc208257589d85.tar.xz
layers: Gitlab 126, Fix for swapchain layer which was checking wrong pointer
-rw-r--r--layers/swapchain.cpp2
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];
}