Add egl-error-flushing

Targets #611.