set QSG_RENDER_LOOP as basic if not explicitly set

This commit is contained in:
Marco Martin 2014-05-07 15:42:42 +02:00
parent 75cac7632b
commit c09d63d192

View file

@ -413,6 +413,11 @@ KWIN_EXPORT int kdemain(int argc, char * argv[])
mallopt(M_TRIM_THRESHOLD, 5*pagesize);
#endif // M_TRIM_THRESHOLD
const QByteArray loopName = qgetenv("QSG_RENDER_LOOP");
if (loopName.isEmpty()) {
setenv("QSG_RENDER_LOOP", "basic", 1);
}
KLocalizedString::setApplicationDomain("kwin");
QLoggingCategory::setFilterRules(QStringLiteral("aurorae.debug = true\n") +
QStringLiteral("kwineffects.debug = true"));