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

Commit baca89c0 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

fix a bug in ComponentSizeChooser where it could pick a software EGLConfig...

fix a bug in ComponentSizeChooser where it could pick a software EGLConfig instead of a better h/w one.

We now just try to honor the stencil / depth buffer "at least", while doing a "shortest distance" on the colors.
parent 2f142745
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -224,12 +224,12 @@ void Loader::init_api(void* dso,

void *Loader::load_driver(const char* driver, gl_hooks_t* hooks, uint32_t mask)
{
    //LOGD("%s", driver);
    void* dso = dlopen(driver, RTLD_NOW | RTLD_LOCAL);
    LOGE_IF(!dso, "%s", dlerror());
    if (dso == 0)
        return 0;

    LOGD("loaded %s", driver);

    if (mask & EGL) {
        getProcAddress = (getProcAddressType)dlsym(dso, "eglGetProcAddress");