From 53c5398529f852903fb6774210573a25f5ea144a Mon Sep 17 00:00:00 2001 From: Andy Nichols Date: Mon, 25 Apr 2016 12:09:08 +0200 Subject: Fix building with QT_NO_OPENGL defined Change-Id: Ice6c47f766899e7313b9dde8cfcd6d81eeaf52f5 Reviewed-by: Laszlo Agocs --- src/quick/scenegraph/adaptations/software/qsgsoftwarerenderloop.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/quick/scenegraph/adaptations/software/qsgsoftwarerenderloop.cpp') diff --git a/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderloop.cpp b/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderloop.cpp index 12e1889627..ef0378fe04 100644 --- a/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderloop.cpp +++ b/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderloop.cpp @@ -163,7 +163,10 @@ void QSGSoftwareRenderLoop::renderWindow(QQuickWindow *window) Q_QUICK_SG_PROFILE_RECORD(QQuickProfiler::SceneGraphRenderLoopFrame); if (data.grabOnly) { +#ifndef QT_NO_OPENGL + // QPlatformBackingStore::toImage() only with OpenGL for some reason grabContent = m_backingStores[window]->handle()->toImage(); +#endif data.grabOnly = false; } -- cgit v1.2.3