Minor fixes

This commit is contained in:
SirLynix
2022-12-06 09:07:18 +01:00
parent f2c83df8ff
commit 75bbc5df09
11 changed files with 12 additions and 8 deletions

View File

@@ -315,7 +315,7 @@ namespace Nz
}
}
void OpenGLCommandBuffer::UpdateDebugName(std::string_view name)
void OpenGLCommandBuffer::UpdateDebugName(std::string_view /*name*/)
{
// No OpenGL object to name
}

View File

@@ -36,7 +36,7 @@ namespace Nz
return commandBuffer;
}
void OpenGLCommandPool::UpdateDebugName(std::string_view name)
void OpenGLCommandPool::UpdateDebugName(std::string_view /*name*/)
{
// No OpenGL object to name
}

View File

@@ -7,7 +7,7 @@
namespace Nz
{
void OpenGLRenderPass::UpdateDebugName(std::string_view name)
void OpenGLRenderPass::UpdateDebugName(std::string_view /*name*/)
{
// No OpenGL object to name
}

View File

@@ -59,7 +59,7 @@ namespace Nz
return bindingPtr;
}
void OpenGLRenderPipelineLayout::UpdateDebugName(std::string_view name)
void OpenGLRenderPipelineLayout::UpdateDebugName(std::string_view /*name*/)
{
// No OpenGL object to name
}

View File

@@ -28,7 +28,7 @@ namespace Nz
return m_renderWindow.GetSize();
}
void OpenGLWindowFramebuffer::UpdateDebugName(std::string_view name)
void OpenGLWindowFramebuffer::UpdateDebugName(std::string_view /*name*/)
{
// No OpenGL object to name
}

View File

@@ -47,14 +47,14 @@ namespace Nz::GL
{
funcPtr(std::forward<Args>(args)...);
if (!context->ProcessErrorStack())
if (context->ProcessErrorStack())
context->PrintFunctionCall(FuncIndex, std::forward<Args>(args)...);
}
else
{
Ret r = funcPtr(std::forward<Args>(args)...);
if (!context->ProcessErrorStack())
if (context->ProcessErrorStack())
context->PrintFunctionCall(FuncIndex, std::forward<Args>(args)...);
return r;