Add map weak reference to map context

This commit is contained in:
Dan Paulat 2022-10-18 10:18:10 -05:00
parent aadf948656
commit 241f910220
3 changed files with 17 additions and 0 deletions

View file

@ -639,6 +639,7 @@ void MapWidget::initializeGL()
p->context_->gl().initializeOpenGLFunctions();
p->map_.reset(new QMapboxGL(nullptr, p->settings_, size(), pixelRatio()));
p->context_->set_map(p->map_);
connect(p->map_.get(),
&QMapboxGL::needsRendering,
p.get(),