summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-01-24 23:05:34 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-01-24 23:05:34 +0000
commitfef3fe41960a564aee1c02509cf73d8961adf3bd (patch)
treef748dc95daafb06cb9fb9f230fbedbb68d668b91 /Graphics/GraphicsEngineOpenGL
parentAdded WindowsFileSystem::IsDirectory (diff)
downloadDiligentCore-fef3fe41960a564aee1c02509cf73d8961adf3bd.tar.gz
DiligentCore-fef3fe41960a564aee1c02509cf73d8961adf3bd.zip
Updated handling of fatal errors
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/include/pch.h30
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