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

Commit 55796504 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

Change-Id: I97510baa9233925f2229bd083be401a1c20f28cc
parents 6eb755fb 92fdc2c2
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) {