diff options
| author | Stenzek <stenzek@gmail.com> | 2019-02-09 21:51:17 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2019-02-09 21:51:23 +1000 |
| commit | ef3306e954a7bed23ce78d7f54d1667bf5ed535f (patch) | |
| tree | 70d22fb40fefdd46bb0d349a129be5441ed8b430 /Source/Core/Common/GL/GLInterface/GLX.cpp | |
| parent | e030a487412ba432a0671bd1cc6febac25c89ab5 (diff) | |
GLContext: Fix shared context creation error on Mesa
This was failing if the first version tried (4.6) didn't succeed.
Diffstat (limited to 'Source/Core/Common/GL/GLInterface/GLX.cpp')
| -rw-r--r-- | Source/Core/Common/GL/GLInterface/GLX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/GL/GLInterface/GLX.cpp b/Source/Core/Common/GL/GLInterface/GLX.cpp index c2e4491ff5..78814db80f 100644 --- a/Source/Core/Common/GL/GLInterface/GLX.cpp +++ b/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; } } |
