eglSwapBuffers
EGL_FALSE
is returned if swapping of the surface buffers fails, EGL_TRUE
otherwise.
EGL_BAD_DISPLAY
is generated if display
is not an EGL display connection.
EGL_NOT_INITIALIZED
is generated if display
has not been initialized.
EGL_BAD_SURFACE
is generated if surface
is not an EGL drawing surface.
EGL_CONTEXT_LOST
is generated if a power management event has occurred. The application must destroy all contexts and reinitialise OpenGL ES state and objects to continue rendering.