mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-31 00:32:53 +00:00
GLInterface: Remove unneeded wglShareLists call
When RenderDoc is attached, wglShareLists fails for some reason (see baldurk/renderdoc#2361). wglCreateContextAttribsARB has a parameter for the share context, so there's no reason to use a separate wglShareLists call. Co-authored-by: baldurk <baldurk@baldurk.org>
This commit is contained in:
parent
819a0a69ff
commit
b8f4a4ae44
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user