DEBUG_CHECK_GL_ERROR

const val DEBUG_CHECK_GL_ERROR: Int = 1

Check glError() after every GL call and throw an exception if glError indicates that an error has occurred. This can be used to help track down which OpenGL ES call is causing an error.

See also