I don't want to render anything, I just need a shared context to upload my textures into 
But, assuming that your answer was a rhetorical question it means that I can simply do something like this and it would work?
tex_upload_ctx_ = new QOpenGLContext();
QSurfaceFormat fmt;
tex_upload_ctx_->setFormat(fmt);
tex_upload_ctx_->setShareContext(main_ctx);
tex_upload_ctx_->create();
tex_upload_win_ = new QWindow();
tex_upload_ctx_->makeCurrent(tex_upload_win_);
tex_upload_ctx_ = new QOpenGLContext();
QSurfaceFormat fmt;
tex_upload_ctx_->setFormat(fmt);
tex_upload_ctx_->setShareContext(main_ctx);
tex_upload_ctx_->create();
tex_upload_win_ = new QWindow();
tex_upload_ctx_->makeCurrent(tex_upload_win_);
To copy to clipboard, switch view to plain text mode
Bookmarks