mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 04:08:32 +09:00
[Fix] (MG_Backend/DirectVulkan): prevent operation in assert getting compiled out in release
This commit is contained in:
@@ -2046,11 +2046,11 @@ namespace MobileGL::MG_Backend::DirectVulkan {
|
||||
renderPassInitInfo.device = m_device;
|
||||
renderPassInitInfo.colorFormat = m_swapchainObject.GetSurfaceFormat().format;
|
||||
renderPassInitInfo.depthStencilFormat = m_depthStencilFormat;
|
||||
MOBILEGL_ASSERT(m_renderPassManager->Initialize(renderPassInitInfo),
|
||||
"RecreateSwapchain: render pass manager initialization failed");
|
||||
MOBILEGL_ASSERT(m_renderPassManager->RecreateDefaultFramebuffers(
|
||||
m_swapchainObject.GetImageViews(), m_depthStencilImageViews, m_swapchainObject.GetExtent()),
|
||||
"RecreateSwapchain: default framebuffers initialization failed");
|
||||
Bool ok = m_renderPassManager->Initialize(renderPassInitInfo);
|
||||
MOBILEGL_ASSERT(ok, "RecreateSwapchain: render pass manager initialization failed");
|
||||
ok = m_renderPassManager->RecreateDefaultFramebuffers(
|
||||
m_swapchainObject.GetImageViews(), m_depthStencilImageViews, m_swapchainObject.GetExtent());
|
||||
MOBILEGL_ASSERT(ok, "RecreateSwapchain: default framebuffers initialization failed");
|
||||
if (m_pipelineFactory) {
|
||||
m_pipelineFactory->DestroyAll();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user