diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-22 15:06:09 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-22 15:06:09 +0100 |
| commit | 9bd0075cb57a0e08fff45a2b9967de287533aa44 (patch) | |
| tree | f9c4db9ba5e6d3ccf2d9a116f78fed50cef43deb /editor/app.cpp | |
| parent | d33fb4adbfc5b43d90a3d0a541579d7724dce027 (diff) | |
main: kill msaa
Diffstat (limited to 'editor/app.cpp')
| -rw-r--r-- | editor/app.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/editor/app.cpp b/editor/app.cpp index 75895ec2..bd7748fb 100644 --- a/editor/app.cpp +++ b/editor/app.cpp @@ -79,7 +79,6 @@ fm_settings app::parse_cmdline(int argc, const char* const* argv) Corrade::Utility::Arguments args{}; args.addOption("vsync", "1") .addOption("gpu-debug", "1") - .addOption("msaa", "") .parse(argc, argv); opts.vsync = parse_bool("vsync", args, opts.vsync); if (auto str = args.value<StringView>("gpu-debug"); str == "no-error" || str == "none") @@ -90,14 +89,6 @@ fm_settings app::parse_cmdline(int argc, const char* const* argv) opts.gpu_debug = parse_bool("gpu-debug", args, opts.gpu_debug > fm_gpu_debug::off) ? fm_gpu_debug::on : fm_gpu_debug::off; - - if (auto str = args.value<StringView>("msaa"); !str.isEmpty()) - { - if (int n = atoi_(str.data()); (unsigned)n > 32 || (n & (n - 1)) != 0) - fm_warn("invalid '--msaa' argument '%s': must be a power of two between 0 and 128", str.data()); - else - opts.msaa_samples = (std::uint8_t)n; - } return opts; } |
