From 3e70f5a548270f312a18594d4e34d9d47a7fd51c Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Wed, 21 Dec 2016 08:38:18 +0100 Subject: [PATCH] Don't require alpha bits for the renderer config This prevents certain client applications in the container to work. --- src/anbox/graphics/emugl/RendererConfig.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/anbox/graphics/emugl/RendererConfig.cpp b/src/anbox/graphics/emugl/RendererConfig.cpp index dd76f46..9493c42 100644 --- a/src/anbox/graphics/emugl/RendererConfig.cpp +++ b/src/anbox/graphics/emugl/RendererConfig.cpp @@ -54,13 +54,12 @@ bool isCompatibleHostConfig(EGLConfig config, EGLDisplay display) { } // Filter out configs that do not support RGB pixel values. - EGLint redSize = 0, greenSize = 0, blueSize = 0, alphaSize = 0; + EGLint redSize = 0, greenSize = 0, blueSize = 0; s_egl.eglGetConfigAttrib(display, config, EGL_RED_SIZE, &redSize); s_egl.eglGetConfigAttrib(display, config, EGL_GREEN_SIZE, &greenSize); s_egl.eglGetConfigAttrib(display, config, EGL_BLUE_SIZE, &blueSize); - s_egl.eglGetConfigAttrib(display, config, EGL_ALPHA_SIZE, &alphaSize); - if (!redSize || !greenSize || !blueSize || !alphaSize) { + if (!redSize || !greenSize || !blueSize) { return false; }