Add gl error flushing helper function
Add egl-flush-error-calls where required
Merge pull request #616 from matthiasbeyer/fix-gl_error_usage

Add egl-error-flushing