| 34 | } |
| 35 | |
| 36 | DebugDrawSystem::~DebugDrawSystem() |
| 37 | { |
| 38 | for ( auto& record : m_threadCommandBuffers ) |
| 39 | { |
| 40 | EE::Delete( record.m_pBuffer ); |
| 41 | } |
| 42 | m_threadCommandBuffers.clear(); |
| 43 | } |
| 44 | |
| 45 | void DebugDrawSystem::ReflectFrameCommandBuffer( DebugDrawInternal::FrameCommandBuffer& reflectedFrameCommands ) |
| 46 | { |
| 47 | // Reflect all the new commands into the frame buffer |
| 48 | Threading::ScopeLockRead Lock( m_threadCommandBuffersMutex ); |
| 49 | for ( CommandBufferRecord& record : m_threadCommandBuffers ) |
| 50 | { |
| 51 | reflectedFrameCommands.AddThreadCommands( *record.m_pBuffer ); |
no test coverage detected