2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 23:25:15 +00:00

Add OpenGL init crash checker.

This commit is contained in:
John Preston
2021-06-11 23:01:07 +04:00
parent 0fde35f59e
commit 750c13e5fe
7 changed files with 64 additions and 4 deletions

View File

@@ -18,6 +18,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "core/sandbox.h"
#include "base/concurrent_timer.h"
//#include <QtCore/QLoggingCategory>
namespace Core {
namespace {
@@ -525,6 +527,7 @@ void Launcher::processArguments() {
int Launcher::executeApplication() {
FilteredCommandLineArguments arguments(_argc, _argv);
Sandbox sandbox(this, arguments.count(), arguments.values());
//QLoggingCategory::setFilterRules("qt.qpa.gl.debug=true");
Ui::MainQueueProcessor processor;
base::ConcurrentTimerEnvironment environment;
return sandbox.start();