From 4c73582f2c9313d02611db141eb1c9fd269537ce Mon Sep 17 00:00:00 2001 From: John Zulauf Date: Wed, 18 Oct 2017 11:33:36 -0600 Subject: layers: Cleanup duplicate structure definition A function local structure was duplicating the GENERIC_HEADER defintion. To improve consistency and maintainability the duplicate struct was removed and all references change to use GENERIC_HEADER. Change-Id: I872ba9185959fc2de2ece33f8e236cfc6c805497 --- layers/core_validation.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'layers/core_validation.cpp') 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; } } -- cgit v1.2.3