Scope checkGlError() calls to be only active in debug targets (no-op in release).
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user