Disable error checking inside glBegin … glEnd

It is an error to call `glGetError` within `glBegin`…`glEnd`, so error checking has to be disabled between these.