Fixed memory errors. (#4113)

This commit is contained in:
Branimir Karadžić
2026-10-31 21:02:37 -07:00
committed by GitHub
parent 9661260185
commit 00a1927c1f
5 changed files with 19 additions and 8 deletions
+5 -2
View File
@@ -10096,7 +10096,7 @@ VK_DESTROY
: m_backBufferColorImageView[ii]
;
if (NULL != m_backBufferDepthStencilImageView)
if (VK_NULL_HANDLE != m_backBufferDepthStencilImageView)
{
attachments[numAttachments++] = m_backBufferDepthStencilImageView;
}
@@ -10759,7 +10759,10 @@ VK_DESTROY
const bool acquired = m_swapChain.acquire(_commandBuffer, _block);
m_needPresent = m_swapChain.m_needPresent;
m_currentFramebuffer = m_swapChain.m_backBufferFrameBuffer[m_swapChain.m_backBufferColorIdx];
m_currentFramebuffer = acquired
? m_swapChain.m_backBufferFrameBuffer[m_swapChain.m_backBufferColorIdx]
: VkFramebuffer(VK_NULL_HANDLE)
;
return acquired;
}