Minor fixes

This commit is contained in:
Jérôme Leclercq
2021-05-02 13:58:56 +02:00
parent 55c2dd8485
commit 990193ebb4
3 changed files with 4 additions and 6 deletions

View File

@@ -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)