Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkaradzic committed May 10, 2024
1 parent 2d17b98 commit cbdc8bf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/renderer_vk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit cbdc8bf

Please sign in to comment.