Merge pull request #10100 from Pokechu22/no-wglShareLists

GLInterface: Remove unneeded wglShareLists call
This commit is contained in:
Léo Lam 2021-09-15 14:37:19 +02:00 committed by GitHub
commit 94e9751dfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 12 deletions

View File

@ -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;
}