mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 19:36:45 +02:00
Revert "Update interface to default to HMD display plugin"
This reverts commit bbef071723
.
This commit is contained in:
parent
0dac2c999e
commit
0cec62b3a3
1 changed files with 2 additions and 11 deletions
|
@ -5687,22 +5687,13 @@ void Application::updateDisplayMode() {
|
||||||
standard.insert(std::end(standard), std::begin(advanced), std::end(advanced));
|
standard.insert(std::end(standard), std::begin(advanced), std::end(advanced));
|
||||||
standard.insert(std::end(standard), std::begin(developer), std::end(developer));
|
standard.insert(std::end(standard), std::begin(developer), std::end(developer));
|
||||||
|
|
||||||
DisplayPluginPointer defaultDisplayPlugin;
|
|
||||||
|
|
||||||
// Default to the first HMD plugin, otherwise use the first in the list.
|
|
||||||
auto hmdPluginIt = find_if(standard.begin(), standard.end(), [](DisplayPluginPointer& plugin) { return plugin->isHmd(); });
|
|
||||||
if (hmdPluginIt != standard.end()) {
|
|
||||||
defaultDisplayPlugin = *hmdPluginIt;
|
|
||||||
} else if (standard.size() > 0) {
|
|
||||||
defaultDisplayPlugin = standard[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach(auto displayPlugin, standard) {
|
foreach(auto displayPlugin, standard) {
|
||||||
addDisplayPluginToMenu(displayPlugin, displayPlugin.get() == defaultDisplayPlugin.get());
|
addDisplayPluginToMenu(displayPlugin, first);
|
||||||
auto displayPluginName = displayPlugin->getName();
|
auto displayPluginName = displayPlugin->getName();
|
||||||
QObject::connect(displayPlugin.get(), &DisplayPlugin::recommendedFramebufferSizeChanged, [this](const QSize & size) {
|
QObject::connect(displayPlugin.get(), &DisplayPlugin::recommendedFramebufferSizeChanged, [this](const QSize & size) {
|
||||||
resizeGL();
|
resizeGL();
|
||||||
});
|
});
|
||||||
|
first = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// after all plugins have been added to the menu, add a separator to the menu
|
// after all plugins have been added to the menu, add a separator to the menu
|
||||||
|
|
Loading…
Reference in a new issue