aboutsummaryrefslogtreecommitdiff
path: root/layers/swapchain.cpp
diff options
context:
space:
mode:
authorJon Ashburn <jon@lunarg.com>2016-07-01 10:08:31 -0600
committerJon Ashburn <jon@lunarg.com>2016-07-01 10:08:31 -0600
commite87e2feb6b8c7691c793baf785de60c8bc85f145 (patch)
tree744c426d1f56702dc012de7724ebc79358db3aaf /layers/swapchain.cpp
parent1d105c6f432d831230f364e728dea489281bac09 (diff)
downloadusermoji-e87e2feb6b8c7691c793baf785de60c8bc85f145.tar.xz
layers: Fix swapchain GetDisplayPlanePropertyCount count check
Change-Id: I1b16a422349eb1c5a6564704f079a0243c5ea00d
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 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,