fixed checkGLError()

git-svn-id: svn://anubis/misc/wfobj@238 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
josh 2010-02-25 16:45:50 +00:00
parent b2ab1fc98b
commit 11033c5876

View File

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