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

Commit 74883abd authored by Rob Herring's avatar Rob Herring Committed by Dmitry Shmidt
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 d87c6b51
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -239,9 +239,9 @@ void EglManager::loadConfigs() {
        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;
        }
    }
}