Merge pull request #7796 from stenzek/glx-context

GLContext: Fix shared context creation error on Mesa
This commit is contained in:
Mat M 2019-02-11 09:23:52 -05:00 committed by GitHub
commit 6b22693e6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -146,12 +146,12 @@ bool GLContextGLX::Initialize(void* display_handle, void* window_handle, bool st
s_glxError = false; s_glxError = false;
m_context = glXCreateContextAttribs(m_display, m_fbconfig, 0, True, &context_attribs[0]); m_context = glXCreateContextAttribs(m_display, m_fbconfig, 0, True, &context_attribs[0]);
XSync(m_display, False); XSync(m_display, False);
m_attribs.insert(m_attribs.end(), context_attribs.begin(), context_attribs.end());
if (!m_context || s_glxError) if (!m_context || s_glxError)
continue; continue;
// Got a context. // Got a context.
INFO_LOG(VIDEO, "Created a GLX context with version %d.%d", version.first, version.second); 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; break;
} }
} }