| 245 | } |
| 246 | |
| 247 | GroupCommand* Renderer::getNextGroupCommand() |
| 248 | { |
| 249 | if (_groupCommandPool.empty()) |
| 250 | { |
| 251 | return new GroupCommand(); |
| 252 | } |
| 253 | |
| 254 | auto* command = _groupCommandPool.back(); |
| 255 | _groupCommandPool.pop_back(); |
| 256 | command->reset(); |
| 257 | |
| 258 | return command; |
| 259 | } |
| 260 | |
| 261 | void Renderer::pushGroup(int renderQueueID) |
| 262 | { |