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

Commit 28798c66 authored by Aaron Kling's avatar Aaron Kling
Browse files

EGL: nvidia: For desktop gl contexts, use gles v2 hooks list

Change-Id: Icd1e8e0c46c72bd87adb35faa2952d56b9ff2541
parent 10af5010
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -919,6 +919,12 @@ EGLContext eglCreateContextImpl(EGLDisplay dpy, EGLConfig config, EGLContext sha
        if (context != EGL_NO_CONTEXT) {
            // figure out if it's a GLESv1 or GLESv2
            int version = egl_connection_t::GLESv1_INDEX;

#ifdef NV_ANDROID_FRAMEWORK_ENHANCEMENTS
            if (cnx->egl.eglQueryAPI() == EGL_OPENGL_API)
                version = egl_connection_t::GLESv2_INDEX;
#endif

            if (attrib_list) {
                while (*attrib_list != EGL_NONE) {
                    GLint attr = *attrib_list++;