| 111 | } |
| 112 | |
| 113 | void FinalizeTextContext(HRenderContext render_context) |
| 114 | { |
| 115 | TextContext& text_context = render_context->m_TextContext; |
| 116 | ReleaseTextEntries(text_context); |
| 117 | for (uint32_t i = 0; i < text_context.m_ConstantBuffers.Size(); ++i) |
| 118 | { |
| 119 | dmRender::DeleteNamedConstantBuffer(text_context.m_ConstantBuffers[i]); |
| 120 | } |
| 121 | dmMemory::AlignedFree(text_context.m_ClientBuffer); |
| 122 | dmGraphics::DeleteVertexBuffer(text_context.m_VertexBuffer); |
| 123 | dmGraphics::DeleteVertexDeclaration(text_context.m_VertexDecl); |
| 124 | |
| 125 | DestroyFontRenderBackend(text_context.m_FontRenderBackend); |
| 126 | } |
| 127 | |
| 128 | void ClearTextEntries(HRenderContext render_context) |
| 129 | { |
no test coverage detected