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

Method GetDrawContext

dev_sandbox/main_linux.cpp:307–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305 LinuxContextFactory(Display * display, Window window) : m_display(display), m_window(window) {}
306
307 dp::GraphicsContext * GetDrawContext() override
308 {
309 std::lock_guard<std::mutex> lock(m_contextAccess);
310 if (m_drawContext == nullptr)
311 m_drawContext = std::make_unique<LinuxGLContext>(m_glx, m_display, m_window, m_uploadContext.get(), false);
312 return m_drawContext.get();
313 }
314
315 dp::GraphicsContext * GetResourcesUploadContext() override
316 {

Callers 1

Calls 1

getMethod · 0.65

Tested by

no test coverage detected