Browse Source

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 năm trước cách đây
mục cha
commit
f7e4a79517
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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_DOUBLEBUFFER, true,
 	GLX_X_RENDERABLE, true,
+	None
 };
 
 struct gl_windowinfo {