diff options
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/include/pch.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/include/pch.h b/Graphics/GraphicsEngineOpenGL/include/pch.h index bea72ba0..706fa9a7 100644 --- a/Graphics/GraphicsEngineOpenGL/include/pch.h +++ b/Graphics/GraphicsEngineOpenGL/include/pch.h @@ -122,23 +122,23 @@ #include "RenderDevice.h" #include "BaseInterfacesGL.h" -#define CHECK_GL_ERROR(...) \ - do \ - { \ - auto err = glGetError(); \ - if (err != GL_NO_ERROR) \ - { \ - LogError<false>(__FUNCTION__, __FILE__, __LINE__, __VA_ARGS__, "\nGL Error Code: ", err); \ - UNEXPECTED("Error"); \ - } \ +#define CHECK_GL_ERROR(...) \ + do \ + { \ + auto err = glGetError(); \ + if (err != GL_NO_ERROR) \ + { \ + LogError<false>(/*IsFatal=*/false, __FUNCTION__, __FILE__, __LINE__, __VA_ARGS__, "\nGL Error Code: ", err); \ + UNEXPECTED("Error"); \ + } \ } while (false) -#define CHECK_GL_ERROR_AND_THROW(...) \ - do \ - { \ - auto err = glGetError(); \ - if (err != GL_NO_ERROR) \ - LogError<true>(__FUNCTION__, __FILE__, __LINE__, __VA_ARGS__, "\nGL Error Code: ", err); \ +#define CHECK_GL_ERROR_AND_THROW(...) \ + do \ + { \ + auto err = glGetError(); \ + if (err != GL_NO_ERROR) \ + LogError<true>(/*IsFatal=*/false, __FUNCTION__, __FILE__, __LINE__, __VA_ARGS__, "\nGL Error Code: ", err); \ } while (false) #ifdef DEVELOPMENT |
