Move frame memory allocator into RenderThread

This commit is contained in:
Magnus Norddahl 2017-02-04 02:50:52 +01:00
commit 45f623faf4
17 changed files with 49 additions and 44 deletions

View file

@ -47,11 +47,13 @@
#include "swrenderer/plane/r_visibleplanelist.h"
#include "swrenderer/segments/r_drawsegment.h"
#include "swrenderer/segments/r_clipsegment.h"
#include "r_memory.h"
namespace swrenderer
{
RenderThread::RenderThread()
{
FrameMemory = std::make_unique<RenderMemory>();
OpaquePass = std::make_unique<RenderOpaquePass>(this);
TranslucentPass = std::make_unique<RenderTranslucentPass>(this);
SpriteList = std::make_unique<VisibleSpriteList>();