diff options
author | Plamena Manolova <[email protected]> | 2016-05-31 17:32:38 +0100 |
---|---|---|
committer | Ben Widawsky <[email protected]> | 2016-06-02 07:45:19 -0700 |
commit | e8b38ca202fbe8c281aeb81a4b64256983f185e0 (patch) | |
tree | eed7a8c2ea5648885e73aa0aed70b92d9c2a4e69 /src/egl/main/eglcurrent.h | |
parent | 17f4c723eb5a503d747d643936e4fd689a5f4946 (diff) |
egl: Check if API is supported when using eglBindAPI.
According to the EGL specifications before binding an API
we must check whether it's supported first. If not eglBindAPI
should return EGL_FALSE and generate a EGL_BAD_PARAMETER error.
Signed-off-by: Plamena Manolova <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/egl/main/eglcurrent.h')
-rw-r--r-- | src/egl/main/eglcurrent.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/egl/main/eglcurrent.h b/src/egl/main/eglcurrent.h index 1e386acdafb..6c203be0729 100644 --- a/src/egl/main/eglcurrent.h +++ b/src/egl/main/eglcurrent.h @@ -56,6 +56,7 @@ extern "C" { */ struct _egl_thread_info { + _EGLThreadInfo *Next; /* used to link threads */ EGLint LastError; _EGLContext *CurrentContexts[_EGL_API_NUM_APIS]; /* use index for fast access to current context */ @@ -64,16 +65,6 @@ struct _egl_thread_info /** - * Return true if a client API enum is recognized. - */ -static inline EGLBoolean -_eglIsApiValid(EGLenum api) -{ - return (api >= _EGL_API_FIRST_API && api <= _EGL_API_LAST_API); -} - - -/** * Convert a client API enum to an index, for use by thread info. * The client API enum is assumed to be valid. */ |