summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/MainFrm.cpp
diff options
context:
space:
mode:
authorMäättä Antti <antti.maatta@qt.io>2017-11-29 11:02:54 +0200
committerAntti Määttä <antti.maatta@qt.io>2017-12-01 06:37:51 +0000
commite872c1672e7f17397bedb6cd81af4a463cbef909 (patch)
tree7fdb2ec2a2024decad0278c6286a433c2cf820c1 /src/Authoring/Studio/MainFrm.cpp
parent959b7c8f0cfda602b1a29a90137d5acb56337473 (diff)
Fix crash at shutdown in debug build
Correct context is not set when doing the shutdown sequence for the renderer so cleanup code asserts when trying to delete framebuffer objects. Task-number: QT3DS-609 Change-Id: I96cba87636e9e360fa49ef3edbeede2e9a3abf86 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/Studio/MainFrm.cpp')
-rw-r--r--src/Authoring/Studio/MainFrm.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Authoring/Studio/MainFrm.cpp b/src/Authoring/Studio/MainFrm.cpp
index 5ddf401a..32a8ff05 100644
--- a/src/Authoring/Studio/MainFrm.cpp
+++ b/src/Authoring/Studio/MainFrm.cpp
@@ -1770,6 +1770,11 @@ QWidget *CMainFrame::GetActiveView()
return centralWidget();
}
+CPlayerWnd *CMainFrame::GetPlayerWnd() const
+{
+ return m_SceneView->GetPlayerWnd();
+}
+
bool CMainFrame::eventFilter(QObject *obj, QEvent *event)
{
switch (event->type()) {