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

Method QtUploadOGLContext

qt/qt_common/qtoglcontext.cpp:114–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114QtUploadOGLContext::QtUploadOGLContext(QOpenGLContext * rootContext, QOffscreenSurface * surface)
115 : m_surface(surface)
116 , m_ctx(std::make_unique<QOpenGLContext>())
117{
118 m_ctx->setFormat(rootContext->format());
119 m_ctx->setShareContext(rootContext);
120 m_ctx->create();
121 CHECK(m_ctx->isValid(), ());
122}
123
124void QtUploadOGLContext::MakeCurrent()
125{

Callers

nothing calls this directly

Calls 3

formatMethod · 0.80
createMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected