diff options
author | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2016-08-25 22:36:47 +0200 |
---|---|---|
committer | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2016-08-25 22:36:47 +0200 |
commit | b2381c3e4b90d845d9713b7b29d64317b7f21ce8 (patch) | |
tree | 5fa81fe2da8084c07570f445331aaa5fe0b2c524 /services | |
parent | f05fa984af2eaa22c5b8b841fa963f1d36346b3e (diff) | |
download | frameworks_native-b2381c3e4b90d845d9713b7b29d64317b7f21ce8.zip frameworks_native-b2381c3e4b90d845d9713b7b29d64317b7f21ce8.tar.gz frameworks_native-b2381c3e4b90d845d9713b7b29d64317b7f21ce8.tar.bz2 |
surfaceflinger: set a fitting EGL config for Mesa
Otherwise, the view is distorted and has the wrong colors.
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
Diffstat (limited to 'services')
-rw-r--r-- | services/surfaceflinger/RenderEngine/RenderEngine.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/services/surfaceflinger/RenderEngine/RenderEngine.cpp b/services/surfaceflinger/RenderEngine/RenderEngine.cpp index cb1d14c..ba94030 100644 --- a/services/surfaceflinger/RenderEngine/RenderEngine.cpp +++ b/services/surfaceflinger/RenderEngine/RenderEngine.cpp @@ -378,11 +378,11 @@ static status_t selectEGLConfig(EGLDisplay display, EGLint format, attribs[EGL_RECORDABLE_ANDROID] = EGL_TRUE; attribs[EGL_SURFACE_TYPE] = EGL_WINDOW_BIT|EGL_PBUFFER_BIT; attribs[EGL_FRAMEBUFFER_TARGET_ANDROID] = EGL_TRUE; - attribs[EGL_RED_SIZE] = 8; - attribs[EGL_GREEN_SIZE] = 8; - attribs[EGL_BLUE_SIZE] = 8; - wantedAttribute = EGL_NONE; - wantedAttributeValue = EGL_NONE; + attribs[EGL_RED_SIZE] = 5; + attribs[EGL_GREEN_SIZE] = 6; + attribs[EGL_BLUE_SIZE] = 5; + wantedAttribute = EGL_NATIVE_VISUAL_ID; + wantedAttributeValue = format; } else { // if no renderable type specified, fallback to a simplified query wantedAttribute = EGL_NATIVE_VISUAL_ID; |