Browse Source

Added a version to the X11 GL context request

This enables the application to start on Intel graphics under Mesa 10.2
Thomas McGrew 11 years ago
parent
commit
59328d86ce
1 changed files with 1 additions and 0 deletions
  1. 1 0
      libobs-opengl/gl-x11.c

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

@@ -39,6 +39,7 @@ static const int ctx_attribs[] = {
 	GLX_CONTEXT_FLAGS_ARB, GLX_CONTEXT_DEBUG_BIT_ARB,
 #endif
 	GLX_CONTEXT_PROFILE_MASK_ARB, GLX_CONTEXT_CORE_PROFILE_BIT_ARB,
+	GLX_CONTEXT_MAJOR_VERSION_ARB, 3, GLX_CONTEXT_MINOR_VERSION_ARB, 2,
 	None,
 };