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>
This commit is contained in:
parent
f05fa984af
commit
b2381c3e4b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user