diff options
| author | Jon Ashburn <jon@lunarg.com> | 2016-07-01 10:08:31 -0600 |
|---|---|---|
| committer | Jon Ashburn <jon@lunarg.com> | 2016-07-01 10:08:31 -0600 |
| commit | e87e2feb6b8c7691c793baf785de60c8bc85f145 (patch) | |
| tree | 744c426d1f56702dc012de7724ebc79358db3aaf | |
| parent | 1d105c6f432d831230f364e728dea489281bac09 (diff) | |
| download | usermoji-e87e2feb6b8c7691c793baf785de60c8bc85f145.tar.xz | |
layers: Fix swapchain GetDisplayPlanePropertyCount count check
Change-Id: I1b16a422349eb1c5a6564704f079a0243c5ea00d
| -rw-r--r-- | layers/swapchain.cpp | 2 |
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, |
