summaryrefslogtreecommitdiffhomepage
path: root/main/setup.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-06 18:16:36 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-06 18:16:36 +0100
commit8009972ccbb68a252050a353aada458e9e05b893 (patch)
treec83f688a909f5637484273987a342e0030ad551d /main/setup.cpp
parent8f275a126f56f4d1cb54c99a467ce8a29de0f6ea (diff)
main: don't override magnum's cmdline options
Diffstat (limited to 'main/setup.cpp')
-rw-r--r--main/setup.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/main/setup.cpp b/main/setup.cpp
index 9030eaf7..8e0e36b9 100644
--- a/main/setup.cpp
+++ b/main/setup.cpp
@@ -45,22 +45,16 @@ auto main_impl::make_window_flags(const fm_settings& s) -> Configuration::Window
auto main_impl::make_conf(const fm_settings& s) -> Configuration
{
return Configuration{}
- .setTitle(s.title)
+ .setTitle(s.title ? (StringView)s.title : "floormat editor"_s)
.setSize(s.resolution)
.setWindowFlags(make_window_flags(s));
}
-auto main_impl::make_gl_conf(const fm_settings& s) -> GLConfiguration
+auto main_impl::make_gl_conf(const fm_settings&) -> GLConfiguration
{
GLConfiguration::Flags flags{};
using f = GLConfiguration::Flag;
flags |= f::ForwardCompatible;
- if (s.gpu_debug >= fm_gpu_debug::on)
- flags |= f::Debug | f::GpuValidation;
- if (s.gpu_debug >= fm_gpu_debug::robust)
- flags |= f::RobustAccess | f::ResetIsolation;
- else if (s.gpu_debug <= fm_gpu_debug::no_error)
- flags |= f::NoError;
return GLConfiguration{}.setFlags(flags);
}