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 | |
parent | d33fb4adbfc5b43d90a3d0a541579d7724dce027 (diff) |
main: kill msaa
Diffstat (limited to 'editor')
-rw-r--r-- | editor/app.cpp | 9 | ||||
-rw-r--r-- | editor/app.hpp | 1 | ||||
-rw-r--r-- | editor/draw.cpp | 6 |
3 files changed, 1 insertions, 15 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; } diff --git a/editor/app.hpp b/editor/app.hpp index 20cf4698..5bf87552 100644 --- a/editor/app.hpp +++ b/editor/app.hpp @@ -55,7 +55,6 @@ private: void maybe_initialize_chunk(const chunk_coords& pos, chunk& c) override; void maybe_initialize_chunk_(const chunk_coords& pos, chunk& c); - void draw_msaa() override; void draw() override; void on_mouse_move(const mouse_move_event& event) noexcept override; diff --git a/editor/draw.cpp b/editor/draw.cpp index 8273fc44..af4fbdcb 100644 --- a/editor/draw.cpp +++ b/editor/draw.cpp @@ -31,13 +31,9 @@ void app::draw_cursor() } } -void app::draw_msaa() -{ - draw_cursor(); -} - void app::draw() { + draw_cursor(); draw_ui(); render_menu(); } |