Minor fixes
This commit is contained in:
parent
55c2dd8485
commit
990193ebb4
|
|
@ -39,8 +39,8 @@ namespace Nz
|
|||
*/
|
||||
void ParameterList::Clear()
|
||||
{
|
||||
for (auto it = m_parameters.begin(); it != m_parameters.end(); ++it)
|
||||
DestroyValue(it->second);
|
||||
for (auto& parameter : m_parameters)
|
||||
DestroyValue(parameter.second);
|
||||
|
||||
m_parameters.clear();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,8 +73,7 @@ namespace Nz::GL
|
|||
|
||||
func = reinterpret_cast<FuncType>(originalFuncPtr);
|
||||
|
||||
#if !defined(NAZARA_COMPILER_MSVC) || NAZARA_PLATFORM_x64
|
||||
#if NAZARA_OPENGLRENDERER_DEBUG
|
||||
#if defined(NAZARA_OPENGLRENDERER_DEBUG) && (!defined(NAZARA_COMPILER_MSVC) || defined(NAZARA_PLATFORM_x64))
|
||||
if (func)
|
||||
{
|
||||
if (std::strcmp(funcName, "glGetError") != 0) //< Prevent infinite recursion
|
||||
|
|
@ -83,7 +82,6 @@ namespace Nz::GL
|
|||
func = Wrapper::WrapErrorHandling();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if (!func)
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace Nz
|
|||
{
|
||||
Vk::AutoCommandBuffer& commandBuffer = commandBuffers.emplace_back(m_commandPool.AllocateCommandBuffer(VK_COMMAND_BUFFER_LEVEL_PRIMARY));
|
||||
|
||||
if (!commandBuffer->Begin())
|
||||
if (!commandBuffer->Begin(VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT))
|
||||
throw std::runtime_error("failed to begin command buffer: " + TranslateVulkanError(commandBuffer->GetLastErrorCode()));
|
||||
|
||||
VulkanCommandBufferBuilder builder(commandBuffer.Get(), imageIndex);
|
||||
|
|
|
|||
Loading…
Reference in New Issue