- Fixed compilation of previous commit.

This commit is contained in:
drfrag666 2018-07-28 12:42:14 +02:00
parent 7144ac6897
commit 195a54e0d1

View file

@ -166,7 +166,7 @@ public:
void Push(Types &&... args) void Push(Types &&... args)
{ {
DrawerThreads *threads = DrawerThreads::Instance(); DrawerThreads *threads = DrawerThreads::Instance();
if (r_multithreaded != 0) if (ThreadedRender && r_multithreaded != 0)
{ {
void *ptr = AllocMemory(sizeof(T)); void *ptr = AllocMemory(sizeof(T));
T *command = new (ptr)T(std::forward<Types>(args)...); T *command = new (ptr)T(std::forward<Types>(args)...);
@ -179,6 +179,8 @@ public:
} }
} }
bool ThreadedRender = true;
private: private:
// Allocate memory valid for the duration of a command execution // Allocate memory valid for the duration of a command execution
void *AllocMemory(size_t size); void *AllocMemory(size_t size);