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

Commit 4a88b522 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

fix [2912927] Can't get NV_draw_path extension to work

there was a problem with eglGetProcAddress() which would only work with
GLES 1.x contexts.

Change-Id: I4747671cbf7ed469bb471a377f1d6f36550d24df
parent a54831c5
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -1409,7 +1409,9 @@ __eglMustCastToProperFunctionPointerType eglGetProcAddress(const char *procname)
                egl_connection_t* const cnx = &gEGLImpl[i];
                egl_connection_t* const cnx = &gEGLImpl[i];
                if (cnx->dso && cnx->egl.eglGetProcAddress) {
                if (cnx->dso && cnx->egl.eglGetProcAddress) {
                    found = true;
                    found = true;
                    cnx->hooks[i]->ext.extensions[slot] =
                    // Extensions are independent of the bound context
                    cnx->hooks[GLESv1_INDEX]->ext.extensions[slot] =
                    cnx->hooks[GLESv2_INDEX]->ext.extensions[slot] =
                            cnx->egl.eglGetProcAddress(procname);
                            cnx->egl.eglGetProcAddress(procname);
                }
                }
            }
            }
@@ -1421,7 +1423,6 @@ __eglMustCastToProperFunctionPointerType eglGetProcAddress(const char *procname)
        }
        }


    pthread_mutex_unlock(&gInitDriverMutex);
    pthread_mutex_unlock(&gInitDriverMutex);

    return addr;
    return addr;
}
}