mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 01:08:48 +02:00
Fix crash on startup on windows / android
This commit is contained in:
parent
9a30073f27
commit
7ca8b54039
1 changed files with 0 additions and 7 deletions
|
@ -41,13 +41,6 @@ bool Context::enableDebugLogger() {
|
||||||
static const QString DEBUG_FLAG("HIFI_DEBUG_OPENGL");
|
static const QString DEBUG_FLAG("HIFI_DEBUG_OPENGL");
|
||||||
static bool enableDebugLogger = QProcessEnvironment::systemEnvironment().contains(DEBUG_FLAG);
|
static bool enableDebugLogger = QProcessEnvironment::systemEnvironment().contains(DEBUG_FLAG);
|
||||||
#endif
|
#endif
|
||||||
static std::once_flag once;
|
|
||||||
std::call_once(once, [&] {
|
|
||||||
// If the previous run crashed, force GL debug logging on
|
|
||||||
if (qApp->property(hifi::properties::CRASHED).toBool()) {
|
|
||||||
enableDebugLogger = true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return enableDebugLogger;
|
return enableDebugLogger;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue