From e87e2feb6b8c7691c793baf785de60c8bc85f145 Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Fri, 1 Jul 2016 10:08:31 -0600 Subject: layers: Fix swapchain GetDisplayPlanePropertyCount count check Change-Id: I1b16a422349eb1c5a6564704f079a0243c5ea00d --- layers/swapchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layers/swapchain.cpp') diff --git a/layers/swapchain.cpp b/layers/swapchain.cpp index e472c988..1f08e95e 100644 --- a/layers/swapchain.cpp +++ b/layers/swapchain.cpp @@ -1038,7 +1038,7 @@ GetDisplayPlaneSupportedDisplaysKHR(VkPhysicalDevice physicalDevice, uint32_t pl __FUNCTION__); } - if (pPhysicalDevice->gotDisplayPlanePropertyCount && planeIndex >= pPhysicalDevice->gotDisplayPlanePropertyCount) + if (pPhysicalDevice->gotDisplayPlanePropertyCount && planeIndex >= pPhysicalDevice->displayPlanePropertyCount) { skipCall |= LOG_ERROR(VK_DEBUG_REPORT_OBJECT_TYPE_INSTANCE_EXT, pPhysicalDevice->pInstance, "planeIndex", SWAPCHAIN_PLANE_INDEX_TOO_LARGE, -- cgit v1.2.3