Minor fixes

This commit is contained in:
Lynix
2023-11-28 20:05:09 +01:00
parent c7579fb9be
commit 079f153640
16 changed files with 53 additions and 47 deletions

View File

@@ -45,17 +45,17 @@ namespace Nz::GL
if constexpr (std::is_same_v<Ret, void>)
{
funcPtr(std::forward<Args>(args)...);
funcPtr(args...);
if (context->ProcessErrorStack())
context->PrintFunctionCall(FuncIndex, std::forward<Args>(args)...);
context->PrintFunctionCall(FuncIndex, args...);
}
else
{
Ret r = funcPtr(std::forward<Args>(args)...);
Ret r = funcPtr(args...);
if (context->ProcessErrorStack())
context->PrintFunctionCall(FuncIndex, std::forward<Args>(args)...);
context->PrintFunctionCall(FuncIndex, args...);
return r;
}