Minor fixes
This commit is contained in:
@@ -264,7 +264,7 @@ namespace Nz
|
||||
{
|
||||
UInt32 crc = 0xFFFFFFFFu;
|
||||
|
||||
for (std::size_t i = 0u; auto c = str[i]; ++i)
|
||||
for (std::size_t i = 0u; str[i]; ++i)
|
||||
crc = Detail::crc32Table[(crc ^ str[i]) & 0xFF] ^ (crc >> 8);
|
||||
|
||||
return ~crc;
|
||||
|
||||
@@ -44,13 +44,7 @@ namespace Nz
|
||||
inline bool QueueHandle::Present(const VkPresentInfoKHR& presentInfo) const
|
||||
{
|
||||
m_lastErrorCode = m_device->vkQueuePresentKHR(m_handle, &presentInfo);
|
||||
if (m_lastErrorCode != VkResult::VK_SUCCESS)
|
||||
{
|
||||
NazaraError("Failed to present queue: " + TranslateVulkanError(m_lastErrorCode));
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return (m_lastErrorCode != VkResult::VK_SUCCESS);
|
||||
}
|
||||
|
||||
inline bool QueueHandle::Present(VkSwapchainKHR swapchain, UInt32 imageIndex, VkSemaphore waitSemaphore) const
|
||||
|
||||
Reference in New Issue
Block a user