eglGetError — return error information
EGLint eglGetError( | 
void); | 
eglGetError returns the error of the last called EGL function in the current thread. Initially, the error is set to EGL_SUCCESS.
The following errors are currently defined:
EGL_SUCCESSThe last function succeeded without error.
EGL_NOT_INITIALIZEDEGL is not initialized, or could not be initialized, for the specified EGL display connection.
EGL_BAD_ACCESSEGL cannot access a requested resource (for example a context is bound in another thread).
EGL_BAD_ALLOCEGL failed to allocate resources for the requested operation.
EGL_BAD_ATTRIBUTEAn unrecognized attribute or attribute value was passed in the attribute list.
EGL_BAD_CONTEXTAn EGLContext argument does not name a valid EGL rendering context.
EGL_BAD_CONFIGAn EGLConfig argument does not name a valid EGL frame buffer configuration.
EGL_BAD_CURRENT_SURFACEThe current surface of the calling thread is a window, pixel buffer or pixmap that is no longer valid.
EGL_BAD_DISPLAYAn EGLDisplay argument does not name a valid EGL display connection.
EGL_BAD_SURFACEAn EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.
EGL_BAD_MATCHArguments are inconsistent (for example, a valid context requires buffers not supplied by a valid surface).
EGL_BAD_PARAMETEROne or more argument values are invalid.
EGL_BAD_NATIVE_PIXMAPA NativePixmapType argument does not refer to a valid native pixmap.
EGL_BAD_NATIVE_WINDOWA NativeWindowType argument does not refer to a valid native window.
EGL_CONTEXT_LOSTA power management event has occurred. The application must destroy all contexts and reinitialise OpenGL ES state and objects to continue rendering.
Copyright © 2003-2010 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.





