Batch #11872 by StrawberrysherbetIX: 1 byte-identical, 1 confirmed by peer review. - fn_02079 CRenderer::ClearFrame: byte-identical (already on main) - fn_17537 RenderVertexPool::Acquire: logic confirmed by peer review (already on main) Peer-reviewed-by: Yommy, KWDev Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
16 lines
420 B
C++
16 lines
420 B
C++
#include "Render/Primitives/RenderCommandPool.h"
|
|
|
|
#include <new>
|
|
|
|
// OFFSET: 0x00CA63D0
|
|
// FUNCTION: fn_20958
|
|
RenderCommand* RenderCommandPool::Acquire() {
|
|
if (this->m_current == this->m_commands.end()) {
|
|
this->m_commands.emplace_back();
|
|
this->m_current = this->m_commands.end();
|
|
return &this->m_commands.back();
|
|
}
|
|
|
|
RenderCommand* command = &*this->m_current++;
|
|
return new (command) RenderCommand;
|
|
}
|