diff --git a/WFObj.cc b/WFObj.cc index b84e9f0..98de054 100644 --- a/WFObj.cc +++ b/WFObj.cc @@ -72,9 +72,6 @@ static string basePath(const string & str) //#define DEBUG_GL_ERROR #ifdef DEBUG_GL_ERROR #define checkGLError() checkGLErrorLine(__FUNCTION__, __LINE__) -#else -#define checkGLError() -#endif static void checkGLErrorLine(const char * function, int line) { GLenum err = glGetError(); @@ -85,6 +82,9 @@ static void checkGLErrorLine(const char * function, int line) << dec << line << endl; } } +#else +#define checkGLError() +#endif /****** WFObj functions ******/