diff options
author | 2018-12-18 20:16:58 +0000 | |
---|---|---|
committer | 2018-12-18 20:16:58 +0000 | |
commit | df6c0adfa770e7ebba5aeac4fb8e18d54a8351e6 (patch) | |
tree | 56059345e3d65e041fda1329f2150b4d794ca325 | |
parent | f2147cf2a9c7a488566c37b96bee727f6d94654a (diff) | |
parent | 2dd816661e4c912164aaaa8d14c73e83f4053427 (diff) |
Merge "[RESTRICT AUTOMERGE] Revert "libEGL: When driver doesn't understand P3, map sRGB-encoded P3 to sRGB""
-rw-r--r-- | opengl/libs/EGL/eglApi.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/opengl/libs/EGL/eglApi.cpp b/opengl/libs/EGL/eglApi.cpp index 36deedcb85..e824238ac3 100644 --- a/opengl/libs/EGL/eglApi.cpp +++ b/opengl/libs/EGL/eglApi.cpp @@ -552,15 +552,6 @@ static EGLBoolean processAttributes(egl_display_ptr dp, NativeWindowType window, break; } } - - // If the driver doesn't understand it, we should map sRGB-encoded P3 to - // sRGB rather than just dropping the colorspace on the floor. - // For this format, the driver is expected to apply the sRGB - // transfer function during framebuffer operations. - if (!copyAttribute && attr[1] == EGL_GL_COLORSPACE_DISPLAY_P3_EXT) { - strippedAttribList->push_back(attr[0]); - strippedAttribList->push_back(EGL_GL_COLORSPACE_SRGB_KHR); - } } if (copyAttribute) { strippedAttribList->push_back(attr[0]); |