summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@jollamobile.com>2015-01-29 19:28:48 +0100
committerGunnar Sletta <gunnar@sletta.org>2015-01-29 18:32:28 +0000
commit4e7c0aa1777007a0bb031e6942e1ab3dd22c1717 (patch)
tree60b0a4dbd8b68214fea6cd9c33b4b6d4fe59688e
parentcb8c62c3f0354c9af7cf5808e3dad71a5a6434b3 (diff)
Fix badly placed ifdef
Change-Id: Id6fe22975f1fe46dfa71832441f52b1ba947fd99 Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
-rw-r--r--customcontext/context.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/customcontext/context.cpp b/customcontext/context.cpp
index e37f073..88a6852 100644
--- a/customcontext/context.cpp
+++ b/customcontext/context.cpp
@@ -281,22 +281,24 @@ Context::Context(QObject *parent)
}
-#ifdef CUSTOMCONTEXT_HYBRISTEXTURE
void Context::renderContextInitialized(QSGRenderContext *ctx)
{
+#if defined(CUSTOMCONTEXT_HYBRISTEXTURE)
// This check is delayed until there is an EGL display present.
m_hybrisTexture = qEnvironmentVariableIsEmpty("CUSTOMCONTEXT_NO_HYBRISTEXTURE");
if (m_hybrisTexture && strstr(eglQueryString(eglGetCurrentDisplay(), EGL_EXTENSIONS), "EGL_HYBRIS_native_buffer") == 0) {
qDebug() << "EGL_HYBRIS_native_buffer is not available...";
m_hybrisTexture = false;
}
+
#if defined(CUSTOMCONTEXT_DEBUG)
qDebug(" - EGL/Hybris based texture: %s", m_hybrisTexture ? "yes" : "no");
#endif
+#endif // CUSTOMCONTEXT_HYBRISTEXTURE
+
QSGContext::renderContextInitialized(ctx);
}
-#endif