summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Render
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2019-06-03 14:00:07 +0300
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2019-06-03 14:01:18 +0300
commit32edde39e5b0e4fa15eda28b7b69c1f713b27850 (patch)
treec41480bbb06377f3a79d13c465a53435cccb9de4 /src/Authoring/Studio/Render
parentc36739204786bd90df6e2ef5a8be78c980240bdd (diff)
parent01cfc8025119609803b3fc00b1e8ca5bc56e84d0 (diff)
Merge "Merge branch '2.4'"
Diffstat (limited to 'src/Authoring/Studio/Render')
-rw-r--r--src/Authoring/Studio/Render/StudioSubPresentationRenderer.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/Authoring/Studio/Render/StudioSubPresentationRenderer.cpp b/src/Authoring/Studio/Render/StudioSubPresentationRenderer.cpp
index 4e09dbf9..76e5f3c3 100644
--- a/src/Authoring/Studio/Render/StudioSubPresentationRenderer.cpp
+++ b/src/Authoring/Studio/Render/StudioSubPresentationRenderer.cpp
@@ -115,11 +115,7 @@ public:
m_surfaceViewer->setUpdateInterval(-1);
m_surfaceViewer->presentation()->setSource(QUrl::fromLocalFile(info.absoluteFilePath()));
m_surfaceViewer->settings()->setMatteColor(Qt::transparent);
-#ifdef Q3DS_PREVIEW_SUBPRESENTATION_RT2
m_surfaceViewer->create(m_surface.data(), m_context.data(), m_fbo->handle());
-#else
- m_surfaceViewer->initialize(m_surface.data(), m_context.data(), m_fbo->handle());
-#endif
m_running = true;
m_semaphore.release();
@@ -157,11 +153,7 @@ public:
m_context->doneCurrent();
m_context.reset();
#endif
-#ifdef Q3DS_PREVIEW_SUBPRESENTATION_RT2
m_surfaceViewer->destroy();
-#else
- m_surfaceViewer->shutdown();
-#endif
m_surfaceViewer.reset();
m_surface->moveToThread(m_mainThread);
m_semaphore.release();