From 9bd0075cb57a0e08fff45a2b9967de287533aa44 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 22 Nov 2022 15:06:09 +0100 Subject: main: kill msaa --- editor/app.cpp | 9 --------- editor/app.hpp | 1 - editor/draw.cpp | 6 +----- 3 files changed, 1 insertion(+), 15 deletions(-) (limited to 'editor') 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("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("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(); } -- cgit v1.2.3