mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-10 16:14:29 +00:00
gl: Do not create secondary context if async is disabled
- Some third party programs fall apart when multiple contexts are created
This commit is contained in:
parent
0f36e87010
commit
ba5b59dc59
@ -632,7 +632,11 @@ void GLGSRender::on_init_thread()
|
|||||||
// NOTES: All contexts have to be created before any is bound to a thread
|
// NOTES: All contexts have to be created before any is bound to a thread
|
||||||
// This allows context sharing to work (both GLRCs passed to wglShareLists have to be idle or you get ERROR_BUSY)
|
// This allows context sharing to work (both GLRCs passed to wglShareLists have to be idle or you get ERROR_BUSY)
|
||||||
m_context = m_frame->make_context();
|
m_context = m_frame->make_context();
|
||||||
|
|
||||||
|
if (!g_cfg.video.disable_asynchronous_shader_compiler)
|
||||||
|
{
|
||||||
m_decompiler_context = m_frame->make_context();
|
m_decompiler_context = m_frame->make_context();
|
||||||
|
}
|
||||||
|
|
||||||
// Bind primary context to main RSX thread
|
// Bind primary context to main RSX thread
|
||||||
m_frame->set_current(m_context);
|
m_frame->set_current(m_context);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user