Make LightVisibility thread local

This commit is contained in:
Magnus Norddahl 2017-03-12 20:40:00 +01:00
commit 00f6ed45a2
28 changed files with 45 additions and 48 deletions

View file

@ -62,6 +62,7 @@ namespace swrenderer
MainThread = mainThread;
FrameMemory = std::make_unique<RenderMemory>();
Viewport = std::make_unique<RenderViewport>();
Light = std::make_unique<LightVisibility>();
DrawQueue = std::make_shared<DrawerCommandQueue>(this);
OpaquePass = std::make_unique<RenderOpaquePass>(this);
TranslucentPass = std::make_unique<RenderTranslucentPass>(this);