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

Commit 92fdc2c2 authored by Chia-I Wu's avatar Chia-I Wu Committed by Gerrit Code Review
Browse files

Merge "EGL: translate EGL_GL_COLORSPACE_LINEAR_KHR to UNKNOWN"

parents 90736768 bf433ab5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -456,7 +456,7 @@ EGLBoolean eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config,
// Translates EGL color spaces to Android data spaces.
static android_dataspace dataSpaceFromEGLColorSpace(EGLint colorspace) {
    if (colorspace == EGL_GL_COLORSPACE_LINEAR_KHR) {
        return HAL_DATASPACE_SRGB_LINEAR;
        return HAL_DATASPACE_UNKNOWN;
    } else if (colorspace == EGL_GL_COLORSPACE_SRGB_KHR) {
        return HAL_DATASPACE_SRGB;
    } else if (colorspace == EGL_GL_COLORSPACE_DISPLAY_P3_EXT) {