Explorar o código

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 %!s(int64=10) %!d(string=hai) anos
pai
achega
f7e4a79517
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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 {