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

Commit 4ee4d209 authored by Rob Herring's avatar Rob Herring Committed by Rob Herring
Browse files

renderthread: relax error handling for wide gamut EGL configs



It is valid to advertise EGL_EXT_pixel_format_float, but not have a
the requested EGL config. Instead of aborting, fallback to the default
behavior.

Change-Id: I6c602233b627dc2070364434fece57d3d0aab435
Cc: Romain Guy <romainguy@google.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 125d736b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -223,9 +223,9 @@ void EglManager::loadConfigs() {
        numConfigs = 1;
        if (!eglChooseConfig(mEglDisplay, attribs16F, &mEglConfigWideGamut, numConfigs, &numConfigs)
                || numConfigs != 1) {
            LOG_ALWAYS_FATAL(
                    "Device claims wide gamut support, cannot find matching config, error = %s",
            ALOGE("Device claims wide gamut support, cannot find matching config, error = %s",
                    eglErrorString());
            EglExtensions.pixelFormatFloat = false;
        }
    }
}