summaryrefslogtreecommitdiff
path: root/opengl
diff options
context:
space:
mode:
author Chia-I Wu <olv@google.com> 2018-06-20 10:57:48 +0800
committer Chia-I Wu <olv@google.com> 2018-08-23 09:21:24 -0700
commitbf433ab57fc12e7af9757796d63ab345bfe9ceef (patch)
tree2b866c907b1978cc82328e8f9d8f5b92b0cd8353 /opengl
parenta3ae0dbc0fad16b46f840f63c2551e491709a8b0 (diff)
EGL: translate EGL_GL_COLORSPACE_LINEAR_KHR to UNKNOWN
EGL_GL_COLORSPACE_KHR affects how GL blends and how the window system interprets the pixel values. Since LINEAR is the default, we should treat it as we traditionally do - linear GL blending - UNKNOWN dataspace The prior behavior is no longer possible until some new EGL extension adds something like EGL_GL_COLORSPACE_SRGB_LINEAR. Bug: 110389592 Test: boots and dumpsys to confirm Change-Id: I1b7e8037ef042e9508f0efffb55602dfed27f937
Diffstat (limited to 'opengl')
-rw-r--r--opengl/libs/EGL/eglApi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/libs/EGL/eglApi.cpp b/opengl/libs/EGL/eglApi.cpp
index 3312b031a0..42049a4878 100644
--- a/opengl/libs/EGL/eglApi.cpp
+++ b/opengl/libs/EGL/eglApi.cpp
@@ -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) {