X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=util.h;h=f62618c404325ef7ef44f2b5b02326e208fc32c7;hp=cc8256189f84872ec2f4a6b69a140352136fa390;hb=ca4d87878bb32c7d672ac00f41ca0292f19acfcb;hpb=eb41fe9da8681138883012170a47958228fbed5b diff --git a/util.h b/util.h index cc82561..f62618c 100644 --- a/util.h +++ b/util.h @@ -48,7 +48,7 @@ void combine_two_samples(float w1, float w2, float *offset, float *total_weight, #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.