Commit a1961524 by Alexis Hetu Committed by Alexis Hétu

Do not allow GLES 3.0 on Android

Prevented the creation of an OpenGL ES 3.0 Context on Android. Bug 21323928 Change-Id: I61a0972f772c8e66b57b267e1d596847063927a8 Reviewed-on: https://swiftshader-review.googlesource.com/3176Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarGreg Hartman <ghartman@google.com> Tested-by: 's avatarGreg Hartman <ghartman@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent e503abfe
......@@ -432,8 +432,11 @@ EGLContext Display::createContext(EGLConfig configHandle, const egl::Context *sh
context = libGLES_CM->es1CreateContext(config, shareContext);
}
}
else if((clientVersion == 2 && config->mRenderableType & EGL_OPENGL_ES2_BIT) ||
(clientVersion == 3 && config->mRenderableType & EGL_OPENGL_ES3_BIT))
else if((clientVersion == 2 && config->mRenderableType & EGL_OPENGL_ES2_BIT)
#ifndef __ANDROID__ // Do not allow GLES 3.0 on Android
|| (clientVersion == 3 && config->mRenderableType & EGL_OPENGL_ES3_BIT)
#endif
)
{
if(libGLESv2)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment