Minor improvements

This commit is contained in:
SirLynix
2023-12-04 00:22:36 +01:00
parent f7f31431cb
commit 6059f608c0
3 changed files with 4 additions and 6 deletions

View File

@@ -87,7 +87,7 @@ namespace Nz::GL
if (func && wrapErrorHandling)
{
if (std::strcmp(funcName, "glGetError") != 0) //< Prevent infinite recursion
if constexpr (FuncIndex != UnderlyingCast(FunctionIndex::glGetError)) //< Prevent infinite recursion
{
using Wrapper = GLWrapper<FuncType, FuncIndex, FuncType>;
func = Wrapper::WrapErrorHandling();