diff options
Diffstat (limited to 'src/quick/designer/designerwindowmanager.cpp')
-rw-r--r-- | src/quick/designer/designerwindowmanager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/quick/designer/designerwindowmanager.cpp b/src/quick/designer/designerwindowmanager.cpp index 76789cd3a8..c4a95d254b 100644 --- a/src/quick/designer/designerwindowmanager.cpp +++ b/src/quick/designer/designerwindowmanager.cpp @@ -40,7 +40,7 @@ ****************************************************************************/ #include "designerwindowmanager_p.h" - +#include "private/qquickwindow_p.h" #include <QtGui/QOpenGLContext> #include <QtQuick/QQuickWindow> @@ -51,6 +51,7 @@ QT_BEGIN_NAMESPACE DesignerWindowManager::DesignerWindowManager() : m_sgContext(QSGContext::createDefaultContext()) { + m_renderContext.reset(new QSGRenderContext(m_sgContext.data())); } void DesignerWindowManager::show(QQuickWindow *window) @@ -74,7 +75,7 @@ void DesignerWindowManager::makeOpenGLContext(QQuickWindow *window) m_openGlContext->create(); if (!m_openGlContext->makeCurrent(window)) qWarning("QQuickWindow: makeCurrent() failed..."); - m_sgContext->initialize(m_openGlContext.data()); + m_renderContext->initialize(m_openGlContext.data()); } else { m_openGlContext->makeCurrent(window); } |