checkgl checks in a debug build after every opengl call glGetError and calls an error-callback which can be set with set_error_callback a default is provided.
checkgl!glDrawArrays(GL_POINTS, 0, 10);
See Implementation
checkgl checks in a debug build after every opengl call glGetError and calls an error-callback which can be set with set_error_callback a default is provided.