aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/quick/items/context2d/qquickcontext2dtexture.cpp5
-rw-r--r--src/quick/scenegraph/coreapi/qsgrenderer.cpp2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/quick/items/context2d/qquickcontext2dtexture.cpp b/src/quick/items/context2d/qquickcontext2dtexture.cpp
index 6136feb4ea..a8bf14ba9f 100644
--- a/src/quick/items/context2d/qquickcontext2dtexture.cpp
+++ b/src/quick/items/context2d/qquickcontext2dtexture.cpp
@@ -54,11 +54,12 @@
#include <QtGui/QGuiApplication>
QT_BEGIN_NAMESPACE
-#if QT_CONFIG(opengl)
-#define QT_MINIMUM_FBO_SIZE 64
Q_LOGGING_CATEGORY(lcCanvas, "qt.quick.canvas")
+#if QT_CONFIG(opengl)
+#define QT_MINIMUM_FBO_SIZE 64
+
static inline int qt_next_power_of_two(int v)
{
v--;
diff --git a/src/quick/scenegraph/coreapi/qsgrenderer.cpp b/src/quick/scenegraph/coreapi/qsgrenderer.cpp
index 0458e2dead..67bd265801 100644
--- a/src/quick/scenegraph/coreapi/qsgrenderer.cpp
+++ b/src/quick/scenegraph/coreapi/qsgrenderer.cpp
@@ -50,7 +50,9 @@
QT_BEGIN_NAMESPACE
+#if QT_CONFIG(opengl)
static const bool qsg_sanity_check = qEnvironmentVariableIntValue("QSG_SANITY_CHECK");
+#endif
static QElapsedTimer frameTimer;
static qint64 preprocessTime;