Disabled GLERROR macro for release builds

This commit is contained in:
2016-03-10 13:19:26 +01:00
parent 416f55b6ce
commit e9ef0e7060
+4
View File
@@ -16,7 +16,11 @@ inline bool _GLERROR(const char* info, const char* file, const char* func, unsig
return false;
}
#ifndef DEBUG
#define GLERROR(function) \
_GLERROR(function, __BASE_FILE__, __func__, __LINE__)
#else
#define GLERROR(function) false
#endif
#endif