added custom debug handler
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user