summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@live.com>2014-02-20 11:08:17 -0600
committerMichael Brasser <michael.brasser@live.com>2014-02-20 21:57:08 +0100
commite63c3bef0855e1dc4cf151241772da995ce064aa (patch)
tree04573243fd2b26d5051d08cbd974c10f2ab85412
parenta3ef03417ce1eb041c8f7878f8de69fc8efb1759 (diff)
Ensure m_materialPreloading is properly initialized.
Change-Id: I3e97c83657d63f01cde5bbf8832f1026773a0f53 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
-rw-r--r--customcontext/context.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/customcontext/context.cpp b/customcontext/context.cpp
index f8ac063..d94d2f9 100644
--- a/customcontext/context.cpp
+++ b/customcontext/context.cpp
@@ -113,6 +113,7 @@ RenderContext::RenderContext(QSGContext *ctx)
m_clipProgram = 0;
qDebug(" - overlaprenderer: %s", m_overlapRenderer ? "yes" : "no");
#ifdef CUSTOMCONTEXT_MATERIALPRELOAD
+ m_materialPreloading = qgetenv("CUSTOMCONTEXT_NO_MATERIAL_PRELOADING").isEmpty();
qDebug(" - material preload: %s", m_materialPreloading ? "yes" : "no");
#endif
#endif