diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-10 11:40:50 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-10 11:40:50 +0100 |
| commit | 50bddb29135723b6b2a825302d239ebf8ed7fb9f (patch) | |
| tree | a9bc4d47da8bf6ce122160d4d1856cd53465c2da /editor | |
| parent | 2a59c1b43f0818e0f8e8ab4d11d9046426148338 (diff) | |
random garbage
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/app.cpp | 2 | ||||
| -rw-r--r-- | editor/precomp.hpp | 10 |
2 files changed, 9 insertions, 3 deletions
diff --git a/editor/app.cpp b/editor/app.cpp index a2c8b104..1795acc3 100644 --- a/editor/app.cpp +++ b/editor/app.cpp @@ -62,7 +62,7 @@ int app::run_from_argv(const int argc, const char* const* const argv) .parse(argc, argv); opts.vsync = parse_bool("vsync", args, opts.vsync); opts.msaa = parse_bool("msaa", args, opts.msaa); - if (auto str = args.value<StringView>("gpu-debug"); str == "no-error" || str == "NO-ERROR") + if (auto str = args.value<StringView>("gpu-debug"); str == "no-error" || str == "NO-ERROR" || str == "none") opts.gpu_debug = fm_gpu_debug::no_error; else if (str == "robust" || str == "ROBUST") opts.gpu_debug = fm_gpu_debug::robust; diff --git a/editor/precomp.hpp b/editor/precomp.hpp index 93ff8164..27d0f317 100644 --- a/editor/precomp.hpp +++ b/editor/precomp.hpp @@ -1,14 +1,20 @@ #pragma once #include "src/precomp.hpp" + #include <cstdlib> +#include <map> + +#include <fmt/format.h> +#include <fmt/compile.h> #include <Corrade/Utility/Arguments.h> -#include <Magnum/Math/Color.h> -#include <Magnum/GL/DebugOutput.h> #include <Magnum/GL/Renderer.h> #include <Magnum/ImGuiIntegration/Context.h> + #if __has_include(<SDL.h>) #include <Magnum/Platform/Sdl2Application.h> +#include <SDL_keycode.h> +#include <SDL_events.h> #endif |
