0
0
Fork 0
mirror of https://github.com/ZDoom/gzdoom-gles.git synced 2025-03-06 17:01:14 +00:00

- 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)...);
@ -179,6 +179,8 @@ public:
}
}
bool ThreadedRender = true;
private:
// Allocate memory valid for the duration of a command execution
void *AllocMemory(size_t size);