Fix com_smp = -1 logic error in Frame() if com_editors active

This commit is contained in:
Stephen Saunders 2021-05-06 12:21:12 -04:00
parent d7a96ca21b
commit fdd9bbbcf8

View file

@ -871,7 +871,8 @@ void idCommonLocal::Frame()
gameReturn_t ret = gameThread.RunGameAndDraw( numGameFrames, userCmdMgr, IsClient(), gameFrame - numGameFrames );
// foresthale 2014-05-12: also check com_editors as many of them are not particularly thread-safe (editLights for example)
if( com_smp.GetInteger() == 0 || com_editors != 0 )
// SRS - if com_editors is active make sure com_smp != -1, otherwise skip and call SwapCommandBuffers_FinishRendering later
if( com_smp.GetInteger() == 0 || ( com_smp.GetInteger() > 0 && com_editors != 0 ) )
{
// in non-smp mode, run the commands we just generated, instead of
// frame-delayed ones from a background thread