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