mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 09:33:29 +02:00
Merge pull request #8863 from zzmp/fix/quick-crash
fix intermittent crash on teleport from contextless Qt connection
This commit is contained in:
commit
9bfc8502f1
1 changed files with 2 additions and 2 deletions
|
@ -297,8 +297,8 @@ void OffscreenQmlSurface::create(QOpenGLContext* shareContext) {
|
|||
_qmlComponent = new QQmlComponent(_qmlEngine);
|
||||
|
||||
|
||||
connect(_renderControl, &QQuickRenderControl::renderRequested, [this] { _render = true; });
|
||||
connect(_renderControl, &QQuickRenderControl::sceneChanged, [this] { _render = _polish = true; });
|
||||
connect(_renderControl, &QQuickRenderControl::renderRequested, this, [this] { _render = true; });
|
||||
connect(_renderControl, &QQuickRenderControl::sceneChanged, this, [this] { _render = _polish = true; });
|
||||
|
||||
if (!_canvas->makeCurrent()) {
|
||||
qWarning("Failed to make context current for QML Renderer");
|
||||
|
|
Loading…
Reference in a new issue