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:
kd-11 2018-07-31 12:05:13 +03:00 committed by kd-11
parent 0f36e87010
commit ba5b59dc59

View File

@ -632,7 +632,11 @@ void GLGSRender::on_init_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)
m_context = m_frame->make_context();
m_decompiler_context = m_frame->make_context();
if (!g_cfg.video.disable_asynchronous_shader_compiler)
{
m_decompiler_context = m_frame->make_context();
}
// Bind primary context to main RSX thread
m_frame->set_current(m_context);