Skip to content
Permalink
Browse files

GLContext: Fix shared context creation error on Mesa

This was failing if the first version tried (4.6) didn't succeed.
  • Loading branch information...
stenzek committed Feb 9, 2019
1 parent e030a48 commit ef3306e954a7bed23ce78d7f54d1667bf5ed535f
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 ef3306e

Please sign in to comment.
You can’t perform that action at this time.