diff options
| author | Léo Lam <leo@leolam.fr> | 2021-09-15 14:37:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-15 14:37:19 +0200 |
| commit | 94e9751dfe6971a92e6888f5fd2edd99fa57e8d1 (patch) | |
| tree | 567cf476e6c8692d06c5fe8fc527236fa5da3396 /Source/Core/Common/GL | |
| parent | 111c36e6cd5b2ec290741f92203a6233d5a3986f (diff) | |
| parent | b8f4a4ae449307f8cd86c4db16085a03ed255a9e (diff) | |
Merge pull request #10100 from Pokechu22/no-wglShareLists
GLInterface: Remove unneeded wglShareLists call
Diffstat (limited to 'Source/Core/Common/GL')
| -rw-r--r-- | Source/Core/Common/GL/GLInterface/WGL.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/Source/Core/Common/GL/GLInterface/WGL.cpp b/Source/Core/Common/GL/GLInterface/WGL.cpp index 69d9e93912..d0d343be01 100644 --- a/Source/Core/Common/GL/GLInterface/WGL.cpp +++ b/Source/Core/Common/GL/GLInterface/WGL.cpp @@ -396,20 +396,9 @@ HGLRC GLContextWGL::CreateCoreContext(HDC dc, HGLRC share_context) 0}; // Attempt creating this context. - HGLRC core_context = wglCreateContextAttribsARB(dc, nullptr, attribs.data()); + HGLRC core_context = wglCreateContextAttribsARB(dc, share_context, attribs.data()); if (core_context) { - // If we're creating a shared context, share the resources before the context is used. - if (share_context) - { - if (!wglShareLists(share_context, core_context)) - { - ERROR_LOG_FMT(VIDEO, "wglShareLists failed"); - wglDeleteContext(core_context); - return nullptr; - } - } - INFO_LOG_FMT(VIDEO, "WGL: Created a GL {}.{} core context", version.first, version.second); return core_context; } |
