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

Commit f43073af authored by Chia-I Wu's avatar Chia-I Wu Committed by android-build-merger
Browse files

Merge "EGL: translate EGL_GL_COLORSPACE_LINEAR_KHR to UNKNOWN" am: 92fdc2c2

am: 55796504

Change-Id: Ibdebb2b41e81c392f70d7b42a8299f67b3cce332
parents 6bb995b2 55796504
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) {