Scope checkGlError() calls to be only active in debug targets (no-op in release).

This commit is contained in:
wrenczes@gmail.com
2010-12-01 05:28:01 +00:00
parent 609ece329e
commit 3a927dace9

View File

@@ -41,13 +41,16 @@ extern "C" {
#endif
#endif
#ifdef _DEBUG
#define checkGlError() \
{ \
GLenum glError = glGetError(); \
if(glError != 0) \
printf("%s : %u : GLerror is %u\n", __FUNCTION__, __LINE__, glError); \
}
#else
#define checkGlError() (void(0))
#endif
//#define FORCE_GL2
#ifdef FORCE_GL2