MCPcopy Create free account
hub / github.com/comaps/comaps / OnContextDestroy

Method OnContextDestroy

libs/drape_frontend/backend_renderer.cpp:708–723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706}
707
708void BackendRenderer::OnContextDestroy()
709{
710 LOG(LINFO, ("On context destroy."));
711 m_readManager->Stop();
712 m_batchersPool.reset();
713 m_metalineManager->Stop();
714 m_texMng->Release();
715 m_overlays.clear();
716 m_trafficGenerator->ClearContextDependentResources();
717
718 // Here we have to erase weak pointer to the context, since it
719 // can be destroyed after this method.
720 CHECK(m_context != nullptr, ());
721 m_context->DoneCurrent();
722 m_context = nullptr;
723}
724
725BackendRenderer::Routine::Routine(BackendRenderer & renderer) : m_renderer(renderer) {}
726

Callers

nothing calls this directly

Calls 6

ReleaseMethod · 0.80
StopMethod · 0.45
resetMethod · 0.45
clearMethod · 0.45
DoneCurrentMethod · 0.45

Tested by

no test coverage detected