MCPcopy Create free account
hub / github.com/defold/defold / TearDown

Method TearDown

engine/render/src/test/test_render_script.cpp:182–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180 }
181
182 void TearDown() override
183 {
184 dmGraphics::DeleteProgram(m_GraphicsContext, m_FontProgram);
185 dmGraphics::DeleteProgram(m_GraphicsContext, m_ComputeProgram);
186 dmRender::DeleteMaterial(m_Context, m_FontMaterial);
187 dmRender::DeleteComputeProgram(m_Context, m_Compute);
188
189 dmRender::DeleteRenderContext(m_Context, 0);
190 dmRender::DeleteFontMap(m_SystemFontMap);
191
192 FontDestroy(m_Font);
193 DestroyGlyphBank(m_GlyphBank);
194
195 dmGraphics::CloseWindow(m_GraphicsContext);
196 dmGraphics::DeleteContext(m_GraphicsContext);
197 dmPlatform::CloseWindow(m_Window);
198 dmPlatform::DeleteWindow(m_Window);
199
200 dmScript::Finalize(m_ScriptContext);
201 dmScript::DeleteContext(m_ScriptContext);
202 }
203};
204
205TEST_F(dmRenderScriptTest, TestNewDelete)

Callers

nothing calls this directly

Calls 11

DeleteProgramFunction · 0.85
DeleteMaterialFunction · 0.85
DeleteComputeProgramFunction · 0.85
DeleteRenderContextFunction · 0.85
DeleteFontMapFunction · 0.85
FontDestroyFunction · 0.85
DestroyGlyphBankFunction · 0.70
CloseWindowFunction · 0.50
DeleteContextFunction · 0.50
DeleteWindowFunction · 0.50
FinalizeFunction · 0.50

Tested by

no test coverage detected