summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
eb41fe9)
This makes it much easier to trace them down in a debugger.
#ifdef NDEBUG
#define check_error()
#else
#ifdef NDEBUG
#define check_error()
#else
-#define check_error() { int err = glGetError(); if (err != GL_NO_ERROR) { printf("GL error 0x%x at %s:%d\n", err, __FILE__, __LINE__); exit(1); } }
+#define check_error() { int err = glGetError(); if (err != GL_NO_ERROR) { printf("GL error 0x%x at %s:%d\n", err, __FILE__, __LINE__); abort(); } }
#endif
// CHECK() is like assert(), but retains any side effects no matter the compilation mode.
#endif
// CHECK() is like assert(), but retains any side effects no matter the compilation mode.