浏览代码

libobs-opengl: Terminate visual attribs with None

(Jim) The documentation for glXChooseFBConfig states that the last value
of the visual attributes array must be 'None'.  Fixes potential
initialization issues with certain drivers.

Closes jp9000/obs-studio#486
repeat 10 年之前
父节点
当前提交
f7e4a79517
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      libobs-opengl/gl-x11.c

+ 1 - 0
libobs-opengl/gl-x11.c

@@ -61,6 +61,7 @@ static int ctx_visual_attribs[] = {
 	GLX_BUFFER_SIZE, 32,
 	GLX_BUFFER_SIZE, 32,
 	GLX_DOUBLEBUFFER, true,
 	GLX_DOUBLEBUFFER, true,
 	GLX_X_RENDERABLE, true,
 	GLX_X_RENDERABLE, true,
+	None
 };
 };
 
 
 struct gl_windowinfo {
 struct gl_windowinfo {