Cleanup.
This commit is contained in:
Родитель
31b2d37456
Коммит
016f29eea7
|
@ -2077,7 +2077,7 @@ bool overlap(const Triangle& _triangle, const Cone& _cone)
|
|||
_cone.end,
|
||||
};
|
||||
|
||||
float ta0, tb0;
|
||||
float ta0 = 0.0f, tb0 = 0.0f;
|
||||
const bool i0 = intersect(ta0, tb0, ab, line);
|
||||
|
||||
float ta1, tb1;
|
||||
|
|
|
@ -2310,20 +2310,17 @@ VK_IMPORT_DEVICE
|
|||
pi.sType = VK_STRUCTURE_TYPE_PRESENT_INFO_KHR;
|
||||
pi.pNext = NULL;
|
||||
pi.waitSemaphoreCount = 0;
|
||||
pi.pWaitSemaphores = NULL; //&m_presentDone[0];
|
||||
pi.pWaitSemaphores = NULL;
|
||||
pi.swapchainCount = 1;
|
||||
pi.pSwapchains = &m_swapchain;
|
||||
pi.pImageIndices = &m_backBufferColorIdx;
|
||||
pi.pResults = NULL;
|
||||
VkResult result = vkQueuePresentKHR(m_queueGraphics, &pi);
|
||||
if (VK_ERROR_OUT_OF_DATE_KHR == result || VK_SUBOPTIMAL_KHR == result)
|
||||
if (VK_ERROR_OUT_OF_DATE_KHR == result
|
||||
|| VK_SUBOPTIMAL_KHR == result)
|
||||
{
|
||||
m_needToRefreshSwapchain = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
VK_CHECK(result);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5735,22 +5732,21 @@ VK_DESTROY
|
|||
uint32_t statsKeyType[2] = {};
|
||||
|
||||
VkSemaphore renderWait = m_presentDone[m_backBufferColorIdx];
|
||||
VkResult result = vkAcquireNextImageKHR(m_device
|
||||
VkResult result = vkAcquireNextImageKHR(
|
||||
m_device
|
||||
, m_swapchain
|
||||
, UINT64_MAX
|
||||
, renderWait
|
||||
, VK_NULL_HANDLE
|
||||
, &m_backBufferColorIdx
|
||||
);
|
||||
if (VK_ERROR_OUT_OF_DATE_KHR == result || VK_SUBOPTIMAL_KHR == result)
|
||||
|
||||
if (VK_ERROR_OUT_OF_DATE_KHR == result
|
||||
|| VK_SUBOPTIMAL_KHR == result)
|
||||
{
|
||||
m_needToRefreshSwapchain = true;
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
VK_CHECK(result);
|
||||
}
|
||||
|
||||
// const uint64_t f0 = BGFX_STATE_BLEND_FUNC(BGFX_STATE_BLEND_FACTOR, BGFX_STATE_BLEND_FACTOR);
|
||||
// const uint64_t f1 = BGFX_STATE_BLEND_FUNC(BGFX_STATE_BLEND_INV_FACTOR, BGFX_STATE_BLEND_INV_FACTOR);
|
||||
|
|
Загрузка…
Ссылка в новой задаче