aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/util
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@theqtcompany.com>2016-06-23 15:18:42 +0200
committerAndy Nichols <andy.nichols@qt.io>2016-06-24 09:53:17 +0000
commite7e34c727298f310698dfe476dda14461606a7e5 (patch)
treebbd0e72b086fb76e8a32621d253746f7220284ac /src/quick/scenegraph/util
parentf291ceaea3d9fffe6794415d8e5ecf44225097fb (diff)
QSGEngine: Fix build with QT_NO_OPENGL
The wrong type of #ifdef check was being used for no opengl. Change-Id: I4c80e149ec03c5dacfcf079de91cdb662d06007e Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/quick/scenegraph/util')
-rw-r--r--src/quick/scenegraph/util/qsgengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/scenegraph/util/qsgengine.cpp b/src/quick/scenegraph/util/qsgengine.cpp
index 988dcffbd8..ad1fcfa470 100644
--- a/src/quick/scenegraph/util/qsgengine.cpp
+++ b/src/quick/scenegraph/util/qsgengine.cpp
@@ -116,7 +116,7 @@ QSGEngine::~QSGEngine()
void QSGEngine::initialize(QOpenGLContext *context)
{
Q_D(QSGEngine);
-#ifdef QT_NO_OPENGL
+#ifndef QT_NO_OPENGL
if (context && QOpenGLContext::currentContext() != context) {
qWarning("WARNING: The context must be current before calling QSGEngine::initialize.");
return;