From b452338f625590139704fafb27c1527716abc0e1 Mon Sep 17 00:00:00 2001 From: Shaolin Date: Mon, 12 Mar 2018 13:24:01 -0300 Subject: [PATCH 1/2] linux-capture: Request at least 8 bits for alpha 10bpc support is under active development all over the linux stack so while we wait for it to mature, request an alpha size of 8. --- plugins/linux-capture/xcompcap-main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/linux-capture/xcompcap-main.cpp b/plugins/linux-capture/xcompcap-main.cpp index 0306b68b1..ba7986f09 100644 --- a/plugins/linux-capture/xcompcap-main.cpp +++ b/plugins/linux-capture/xcompcap-main.cpp @@ -400,6 +400,7 @@ void XCompcapMain::updateSettings(obs_data_t *settings) GLX_BIND_TO_TEXTURE_RGBA_EXT, GL_TRUE, GLX_DRAWABLE_TYPE, GLX_PIXMAP_BIT, GLX_BIND_TO_TEXTURE_TARGETS_EXT, GLX_TEXTURE_2D_BIT_EXT, + GLX_ALPHA_SIZE, 8, GLX_DOUBLEBUFFER, GL_FALSE, None }; From d8a4c4cd528ab317dc31a7888b28dc5d42b31f06 Mon Sep 17 00:00:00 2001 From: Shaolin Date: Mon, 12 Mar 2018 22:32:23 -0300 Subject: [PATCH 2/2] libobs-opengl: Request at least 8 bits for alpha 10bpc support is under active development all over the linux stack so while we wait for it to mature, request an alpha size of 8. --- libobs-opengl/gl-x11.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libobs-opengl/gl-x11.c b/libobs-opengl/gl-x11.c index 058db976c..2653cb150 100644 --- a/libobs-opengl/gl-x11.c +++ b/libobs-opengl/gl-x11.c @@ -59,6 +59,7 @@ static int ctx_visual_attribs[] = { GLX_STENCIL_SIZE, 0, GLX_DEPTH_SIZE, 0, GLX_BUFFER_SIZE, 32, + GLX_ALPHA_SIZE, 8, GLX_DOUBLEBUFFER, true, GLX_X_RENDERABLE, true, None