Don't require alpha bits for the renderer config

This prevents certain client applications in the container to work.
This commit is contained in:
Simon Fels 2016-12-21 08:38:18 +01:00
commit 3e70f5a548

View file

@ -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;
}