summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
Diffstat (limited to 'editor')
-rw-r--r--editor/app.cpp2
-rw-r--r--editor/precomp.hpp10
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