Function checkError
Check for GL error. If an error occured, reports about it in the logger and returns true
bool checkError
(
string context = "",
string functionName = __FUNCTION__,
int line = __LINE__
);