diff options
author | Abhishek Kumar <[email protected]> | 2020-05-07 22:02:02 +0530 |
---|---|---|
committer | Abhishek Kumar <[email protected]> | 2020-05-11 13:06:22 +0000 |
commit | 0bea2a13212be10982e14617002a3ff851b84717 (patch) | |
tree | 8e7cfb4dda0468c686cfe9dff5e8fb128f64ca1e /src | |
parent | 9c839e6394028a84c97ebd0a725ff512aeb75ce6 (diff) |
egl: Limit the EGL ver for android
Android support EGL 1.5 from Q onwards,
so limit EGL ver to 1.4 for P and below.
Closes: #2892
Signed-off-by: Abhishek Kumar <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4951>
Diffstat (limited to 'src')
-rw-r--r-- | src/egl/main/eglapi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 58cc9032925..47640fdde71 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -597,6 +597,11 @@ _eglComputeVersion(_EGLDisplay *disp) disp->Extensions.KHR_gl_colorspace && disp->Extensions.KHR_surfaceless_context) disp->Version = 15; + + /* For Android P and below limit the EGL version to 1.4 */ +#if defined(ANDROID) && ANDROID_API_LEVEL <= 28 + disp->Version = 14; +#endif } /** |