Bring eglSwapBuffers closer to actual documentation.
Checks now whether ctx was initialized and not lost. Does a glFlush before returning.
And returns success codes from function.
Remove ambiguous error reporting of EGL_NOT_INITIALIZED and add error reporting for EGL_BAD_ACCESS when invalid internal state is encountered.
Remove flush from eglSwapBuffers emulation.
Merge pull request #1871 from abergmeier/fixup_eglSwapBuffers

Fix eglSwapBuffers
check all i64 functions for whether we need to include precise i64 code
Merge remote-tracking branch 'upstream/incoming' into incoming