Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ae2a30c authored by Sean Callanan's avatar Sean Callanan Committed by Android (Google) Code Review
Browse files

Merge "egl: Fallback if a driver doesn't support egl 1.5"

parents 7c56acab ad9061c6
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -314,6 +314,24 @@ EGLBoolean egl_display_t::initialize(EGLint *major, EGLint *minor) {
            }
        }

        if (cnx->minor == 5) {
            // full list in egl_entries.in
            if (!cnx->egl.eglCreateImage ||
                !cnx->egl.eglDestroyImage ||
                !cnx->egl.eglGetPlatformDisplay ||
                !cnx->egl.eglCreatePlatformWindowSurface ||
                !cnx->egl.eglCreatePlatformPixmapSurface ||
                !cnx->egl.eglCreateSync ||
                !cnx->egl.eglDestroySync ||
                !cnx->egl.eglClientWaitSync ||
                !cnx->egl.eglGetSyncAttrib ||
                !cnx->egl.eglWaitSync) {
                ALOGE("Driver indicates EGL 1.5 support, but does not have "
                      "a critical API");
                cnx->minor = 4;
            }
        }

        // the query strings are per-display
        mVendorString = sVendorString;
        mVersionString.clear();