From 647ace82333e0f9932ef7a6e11fbb98bc5ddf6af Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Mon, 14 May 2018 06:56:49 +0200 Subject: [PATCH] emugl: use correct rgb spec for EGL config selection --- src/anbox/graphics/emugl/Renderer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/anbox/graphics/emugl/Renderer.cpp b/src/anbox/graphics/emugl/Renderer.cpp index c89702c..08434ca 100644 --- a/src/anbox/graphics/emugl/Renderer.cpp +++ b/src/anbox/graphics/emugl/Renderer.cpp @@ -118,9 +118,9 @@ bool Renderer::initialize(EGLNativeDisplayType nativeDisplay) { // Create EGL context for framebuffer post rendering. GLint surfaceType = EGL_WINDOW_BIT | EGL_PBUFFER_BIT; - const GLint configAttribs[] = {EGL_RED_SIZE, 1, - EGL_GREEN_SIZE, 1, - EGL_BLUE_SIZE, 1, + const GLint configAttribs[] = {EGL_RED_SIZE, 8, + EGL_GREEN_SIZE, 8, + EGL_BLUE_SIZE, 8, EGL_SURFACE_TYPE, surfaceType, EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, EGL_NONE};