From 11033c58767aa44d0b7b2ea82fb6628f1200e434 Mon Sep 17 00:00:00 2001 From: josh Date: Thu, 25 Feb 2010 16:45:50 +0000 Subject: [PATCH] fixed checkGLError() git-svn-id: svn://anubis/misc/wfobj@238 bd8a9e45-a331-0410-811e-c64571078777 --- WFObj.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ******/