added custom debug handler

This commit is contained in:
itsmattkc
2019-09-10 23:44:35 +10:00
parent 69ca2b2a50
commit 6dc62a8703
8 changed files with 50 additions and 6 deletions
+4
View File
@@ -35,6 +35,7 @@ extern "C" {
#include <QSurfaceFormat>
#include "core.h"
#include "common/debug.h"
int main(int argc, char *argv[]) {
// Create application instance
@@ -57,6 +58,9 @@ int main(int argc, char *argv[]) {
QGuiApplication::setDesktopFileName("org.olivevideoeditor.Olive");
#endif
// Set up debug handler
qInstallMessageHandler(DebugHandler);
// Set OpenGL display profile (3.2 Core)
QSurfaceFormat format;
format.setVersion(3, 2);