diff --git a/src/Nazara/OpenGLRenderer/Wrapper/Context.cpp b/src/Nazara/OpenGLRenderer/Wrapper/Context.cpp index bc6f26c2f..7742bfe1d 100644 --- a/src/Nazara/OpenGLRenderer/Wrapper/Context.cpp +++ b/src/Nazara/OpenGLRenderer/Wrapper/Context.cpp @@ -22,14 +22,13 @@ namespace Nz::GL namespace { - template + template struct GLWrapper; - template - struct GLWrapper + template + struct GLWrapper { - template - auto WrapErrorHandling() + static auto WrapErrorHandling() { return [](Args... args) -> Ret { @@ -79,8 +78,8 @@ namespace Nz::GL { if (std::strcmp(funcName, "glGetError") != 0) //< Prevent infinite recursion { - GLWrapper> wrapper; - func = wrapper.template WrapErrorHandling(); + using Wrapper = GLWrapper>; + func = Wrapper::WrapErrorHandling(); } } #endif