mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
egl: treat EGL_OPENGL_API as invalid on Android
At the moment one can use OpenGL in eglBindAPI() only to clear the EGL_OPENGL_BIT from RenderableType and Conformant for _each_ config. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Tomasz Figa <tfiga@chromium.org>
This commit is contained in:
parent
a165e5cb7c
commit
7563c39641
1 changed files with 7 additions and 1 deletions
|
|
@ -69,7 +69,13 @@ struct _egl_thread_info
|
|||
static inline EGLBoolean
|
||||
_eglIsApiValid(EGLenum api)
|
||||
{
|
||||
return (api >= _EGL_API_FIRST_API && api <= _EGL_API_LAST_API);
|
||||
#ifdef ANDROID
|
||||
/* OpenGL is not a valid/supported API on Android */
|
||||
return api >= _EGL_API_FIRST_API && api <= _EGL_API_LAST_API &&
|
||||
api != EGL_OPENGL_API;
|
||||
#else
|
||||
return api >= _EGL_API_FIRST_API && api <= _EGL_API_LAST_API;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue