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.
A call to eglGetError sets the error to EGL_SUCCESS.
Copyright © 2003 Silicon Graphics, Inc.
This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.