aboutsummaryrefslogtreecommitdiff
path: root/layers/swapchain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layers/swapchain.cpp')
-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];
}