mirror of
https://github.com/lubosz/overte.git
synced 2025-08-28 15:26:28 +02:00
Fix shutdown crash on Mac in Application::onPresent
This commit is contained in:
parent
b7069fff71
commit
18219464f1
1 changed files with 2 additions and 3 deletions
|
@ -269,9 +269,6 @@ public:
|
|||
}
|
||||
_renderContext->doneCurrent();
|
||||
|
||||
// Deleting the object with automatically shutdown the thread
|
||||
connect(qApp, &QCoreApplication::aboutToQuit, this, &QObject::deleteLater);
|
||||
|
||||
// Transfer to a new thread
|
||||
moveToNewNamedThread(this, "RenderThread", [this](QThread* renderThread) {
|
||||
hifi::qt::addBlockingForbiddenThread("Render", renderThread);
|
||||
|
@ -2590,6 +2587,8 @@ Application::~Application() {
|
|||
|
||||
// Can't log to file passed this point, FileLogger about to be deleted
|
||||
qInstallMessageHandler(LogHandler::verboseMessageHandler);
|
||||
|
||||
_renderEventHandler->deleteLater();
|
||||
}
|
||||
|
||||
void Application::initializeGL() {
|
||||
|
|
Loading…
Reference in a new issue