egl: Limit the EGL ver for android
[mesa.git] / src / egl / main / eglapi.c
index 58cc90329251d8bfbc96862d03a4875a58e53f19..47640fdde71be1b193998f20805bf132c2ec0533 100644 (file)
@@ -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
 }
 
 /**