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:
parent
7144ac6897
commit
195a54e0d1
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue