mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 11:17:38 +02:00
PR feedback
This commit is contained in:
parent
908e153c36
commit
df225afd05
1 changed files with 1 additions and 9 deletions
|
@ -998,7 +998,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer) :
|
||||||
});
|
});
|
||||||
// Setting the interval to zero forces this to get called whenever there are no messages
|
// Setting the interval to zero forces this to get called whenever there are no messages
|
||||||
// in the queue, which can be pretty damn frequent. Hence the idle function has a bunch
|
// in the queue, which can be pretty damn frequent. Hence the idle function has a bunch
|
||||||
// of logic to abort early if it's being called to often.
|
// of logic to abort early if it's being called too often.
|
||||||
_idleTimer->start(0);
|
_idleTimer->start(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4830,17 +4830,9 @@ void Application::updateDisplayMode() {
|
||||||
|
|
||||||
foreach(auto displayPlugin, standard) {
|
foreach(auto displayPlugin, standard) {
|
||||||
addDisplayPluginToMenu(displayPlugin, first);
|
addDisplayPluginToMenu(displayPlugin, first);
|
||||||
// This must be a queued connection to avoid a deadlock
|
|
||||||
//QObject::connect(displayPlugin.get(), &DisplayPlugin::requestRender, [=] {
|
|
||||||
// postEvent(this, new LambdaEvent([=] {
|
|
||||||
// paintGL();
|
|
||||||
// }), Qt::HighEventPriority);
|
|
||||||
//});
|
|
||||||
|
|
||||||
QObject::connect(displayPlugin.get(), &DisplayPlugin::recommendedFramebufferSizeChanged, [this](const QSize & size) {
|
QObject::connect(displayPlugin.get(), &DisplayPlugin::recommendedFramebufferSizeChanged, [this](const QSize & size) {
|
||||||
resizeGL();
|
resizeGL();
|
||||||
});
|
});
|
||||||
|
|
||||||
first = false;
|
first = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue