From: Abhishek Kumar Date: Thu, 7 May 2020 16:32:02 +0000 (+0530) Subject: egl: Limit the EGL ver for android X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=commitdiff_plain;h=0bea2a13212be10982e14617002a3ff851b84717 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 Reviewed-by: Tapani Pälli Part-of: --- 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 } /**