00001 00003 void glPrintError(const char* file, const long line); 00004 00005 #ifdef _DEBUG 00006 #define CHECK_GL_ERROR glPrintError(__FILE__, __LINE__); 00007 #else 00008 #define CHECK_GL_ERROR 00009 #endif