Fix missing player sprites in some situations when r_scene_multithreaded is on

This commit is contained in:
Magnus Norddahl 2017-03-13 19:19:46 +01:00
parent 22d3599ea1
commit a08f35fe3b

View file

@ -209,6 +209,10 @@ namespace swrenderer
end_condition.wait(end_lock, [&]() { return finished_threads == Threads.size(); }); end_condition.wait(end_lock, [&]() { return finished_threads == Threads.size(); });
finished_threads = 0; finished_threads = 0;
} }
// Change main thread back to covering the whole screen for player sprites
MainThread()->X1 = 0;
MainThread()->X2 = viewwidth;
} }
void RenderScene::RenderThreadSlice(RenderThread *thread) void RenderScene::RenderThreadSlice(RenderThread *thread)