From 403ee23de14fae6a95eff355863482bfbe4f3b54 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 27 Apr 2015 10:11:41 -0400 Subject: [PATCH] egl: Use maximum bits per color instead of minimum https://bugzilla.gnome.org/show_bug.cgi?id=748425 --- gst-libs/gst/gl/egl/gstglcontext_egl.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gst-libs/gst/gl/egl/gstglcontext_egl.c b/gst-libs/gst/gl/egl/gstglcontext_egl.c index 8a6468c..f1fb70f 100644 --- a/gst-libs/gst/gl/egl/gstglcontext_egl.c +++ b/gst-libs/gst/gl/egl/gstglcontext_egl.c @@ -184,16 +184,19 @@ gst_gl_context_egl_choose_config (GstGLContextEGL * egl, else config_attrib[i++] = EGL_OPENGL_BIT; #if defined(USE_EGL_RPI) && GST_GL_HAVE_WINDOW_WAYLAND - /* The configurations r=5 g=6 b=5 seems to be buggy whereas + /* The configurations with a=0 seems to be buggy whereas * it works when using dispmanx directly */ - config_attrib[i++] = EGL_BUFFER_SIZE; - config_attrib[i++] = 24; - /* same with a=0 */ config_attrib[i++] = EGL_ALPHA_SIZE; config_attrib[i++] = 1; #endif config_attrib[i++] = EGL_DEPTH_SIZE; config_attrib[i++] = 16; + config_attrib[i++] = EGL_RED_SIZE; + config_attrib[i++] = 1; + config_attrib[i++] = EGL_GREEN_SIZE; + config_attrib[i++] = 1; + config_attrib[i++] = EGL_BLUE_SIZE; + config_attrib[i++] = 1; config_attrib[i++] = EGL_NONE; if (eglChooseConfig (egl->egl_display, config_attrib, -- 2.7.4