From cbdc8bf77c6585d91c8262c15a06e378cbad9b31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Fri, 10 May 2024 07:37:28 -0700 Subject: [PATCH] Cleanup. --- src/renderer_vk.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/renderer_vk.cpp b/src/renderer_vk.cpp index 2d1f85d8c..7d64a3ad0 100644 --- a/src/renderer_vk.cpp +++ b/src/renderer_vk.cpp @@ -6251,11 +6251,12 @@ VK_DESTROY const VkImageLayout oldLayout = m_currentImageLayout; const VkImageLayout oldSingleMsaaLayout = m_currentSingleMsaaImageLayout; - auto numLayers = _numLayers; - if(m_type == VK_IMAGE_VIEW_TYPE_CUBE || VK_IMAGE_VIEW_TYPE_CUBE_ARRAY) - { - numLayers = m_numSides; - } + const uint32_t numLayers = false + || m_type == VK_IMAGE_VIEW_TYPE_CUBE + || m_type == VK_IMAGE_VIEW_TYPE_CUBE_ARRAY + ? m_numSides + : _numLayers + ; if (needResolve) {