eglGetError.3G - Man Page
return error information
C Specification
EGLint eglGetError(void);
Description
eglGetError returns the error of the last called EGL function in the current thread. Initially, the error is set to EGL_SUCCESS.
When an EGL function could potentially generate several different errors (for example, when passed both a bad attribute name, and a bad attribute value for a legal attribute name), the implementation may choose to generate any one of the applicable errors.
The following errors are currently defined:
- EGL_SUCCESS
The last function succeeded without error.
- EGL_NOT_INITIALIZED
EGL is not initialized, or could not be initialized, for the specified EGL display connection.
- EGL_BAD_ACCESS
EGL cannot access a requested resource (for example a context is bound in another thread).
- EGL_BAD_ALLOC
EGL failed to allocate resources for the requested operation.
- EGL_BAD_ATTRIBUTE
An unrecognized attribute or attribute value was passed in the attribute list.
- EGL_BAD_CONTEXT
An EGLContext argument does not name a valid EGL rendering context.
- EGL_BAD_CONFIG
An EGLConfig argument does not name a valid EGL frame buffer configuration.
- EGL_BAD_CURRENT_SURFACE
The current surface of the calling thread is a window, pixel buffer or pixmap that is no longer valid.
- EGL_BAD_DISPLAY
An EGLDisplay argument does not name a valid EGL display connection.
- EGL_BAD_SURFACE
An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.
- EGL_BAD_MATCH
Arguments are inconsistent (for example, a valid context requires buffers not supplied by a valid surface).
- EGL_BAD_PARAMETER
One or more argument values are invalid.
- EGL_BAD_NATIVE_PIXMAP
A NativePixmapType argument does not refer to a valid native pixmap.
- EGL_BAD_NATIVE_WINDOW
A NativeWindowType argument does not refer to a valid native window.
- EGL_CONTEXT_LOST
A power management event has occurred. The application must destroy all contexts and reinitialise OpenGL ES state and objects to continue rendering.
Errors
A call to eglGetError sets the error to EGL_SUCCESS.
Copyright
Copyright © 2003-2014 The Khronos Group Inc.
Notes
- 1.
[set $man.base.url.for.relative.links]/KhronosLogo.jpg