Permalink
Browse files

Merge pull request #7796 from stenzek/glx-context

GLContext: Fix shared context creation error on Mesa
  • Loading branch information...
lioncash committed Feb 11, 2019
2 parents eb11d04 + ef3306e commit 6b22693e6ee783989f92c8a09a4912f4123235d5
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Core/Common/GL/GLInterface/GLX.cpp
@@ -146,12 +146,12 @@ bool GLContextGLX::Initialize(void* display_handle, void* window_handle, bool st
s_glxError = false;
m_context = glXCreateContextAttribs(m_display, m_fbconfig, 0, True, &context_attribs[0]);
XSync(m_display, False);
m_attribs.insert(m_attribs.end(), context_attribs.begin(), context_attribs.end());
if (!m_context || s_glxError)
continue;

// Got a context.
INFO_LOG(VIDEO, "Created a GLX context with version %d.%d", version.first, version.second);
m_attribs.insert(m_attribs.end(), context_attribs.begin(), context_attribs.end());
break;
}
}

0 comments on commit 6b22693

Please sign in to comment.