glGetError calls made with specific flag

This is so error checking isn't done in the application, in case the
user wants to run their code through a debugger which can catch
any errors and report them in detail.