mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 13:30:06 +00:00
Add map weak reference to map context
This commit is contained in:
parent
aadf948656
commit
241f910220
3 changed files with 17 additions and 0 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue