Skip to content

Commit

Permalink
GLContext: Fix shared context creation error on Mesa
Browse files Browse the repository at this point in the history
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 ef3306e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Common/GL/GLInterface/GLX.cpp
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit ef3306e

Please sign in to comment.