瀏覽代碼

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.
Shaolin 8 年之前
父節點
當前提交
d8a4c4cd52
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      libobs-opengl/gl-x11.c

+ 1 - 0
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