| 21 | { } |
| 22 | |
| 23 | FrameBuffer::~FrameBuffer() |
| 24 | { |
| 25 | I_GraphicsApiContext* const api = Viewport::GetCurrentApiContext(); |
| 26 | |
| 27 | if (m_VPCallbackId != render::T_ViewportEventDispatcher::INVALID_ID) |
| 28 | { |
| 29 | Viewport::GetCurrentViewport()->GetEventDispatcher().Unregister(m_VPCallbackId); |
| 30 | } |
| 31 | |
| 32 | api->DeleteRenderBuffers(1, &m_RboDepthStencil); |
| 33 | for (size_t i = 0; i < m_pTextureVec.size(); i++) |
| 34 | { |
| 35 | SafeDelete(m_pTextureVec[i]); |
| 36 | } |
| 37 | api->DeleteFramebuffers(1, &m_GlFrameBuffer); |
| 38 | } |
| 39 | |
| 40 | void FrameBuffer::Initialize() |
| 41 | { |
nothing calls this directly
no test coverage detected