diff options
author | Marek Olšák <[email protected]> | 2016-06-03 11:25:19 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-06-03 11:33:45 +0200 |
commit | 8c361e84ad010552a42593fad4130befc58e9a6a (patch) | |
tree | 1a0b95b095bc6871342dfb0c3a68d1830815146c /src/egl/main/eglcurrent.h | |
parent | 9bdbb9c0e0d0fb73831c590eb9626a3298f55982 (diff) |
Revert "egl: Check if API is supported when using eglBindAPI."
This reverts commit e8b38ca202fbe8c281aeb81a4b64256983f185e0.
It broke Glamor for Gallium at least.
Diffstat (limited to 'src/egl/main/eglcurrent.h')
-rw-r--r-- | src/egl/main/eglcurrent.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/egl/main/eglcurrent.h b/src/egl/main/eglcurrent.h index 6c203be0729..1e386acdafb 100644 --- a/src/egl/main/eglcurrent.h +++ b/src/egl/main/eglcurrent.h @@ -56,7 +56,6 @@ 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 */ @@ -65,6 +64,16 @@ 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. */ |