aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index 124e0f2e..1f4087f4 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -9722,11 +9722,7 @@ VKAPI_ATTR VkResult VKAPI_CALL QueuePresentKHR(VkQueue queue, const VkPresentInf
}
if (pPresentInfo && pPresentInfo->pNext) {
// Verify ext struct
- struct std_header {
- VkStructureType sType;
- const void *pNext;
- };
- std_header *pnext = (std_header *)pPresentInfo->pNext;
+ GENERIC_HEADER *pnext = (GENERIC_HEADER *)pPresentInfo->pNext;
while (pnext) {
if (VK_STRUCTURE_TYPE_PRESENT_REGIONS_KHR == pnext->sType) {
VkPresentRegionsKHR *present_regions = (VkPresentRegionsKHR *)pnext;
@@ -9782,7 +9778,7 @@ VKAPI_ATTR VkResult VKAPI_CALL QueuePresentKHR(VkQueue queue, const VkPresentInf
present_times_info->swapchainCount, pPresentInfo->swapchainCount);
}
}
- pnext = (std_header *)pnext->pNext;
+ pnext = (GENERIC_HEADER *)pnext->pNext;
}
}