checkGLErrors

inline fun checkGLErrors(crossinline errorFunction: (Int) -> String? = { null })(source)