| 112 | } |
| 113 | |
| 114 | QtUploadOGLContext::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 | |
| 124 | void QtUploadOGLContext::MakeCurrent() |
| 125 | { |