diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-24 11:03:25 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-24 11:03:25 +0200 |
commit | c8547d38a29bb4756e3351bdfa45ea72635286d8 (patch) | |
tree | 5cdf9ad44db6f7673734febdccf89b43409a9b9c /main/floormat-main-impl.hpp | |
parent | f47790b1ec38f27c486ad2002dac8b310933f0a4 (diff) |
a
Diffstat (limited to 'main/floormat-main-impl.hpp')
-rw-r--r-- | main/floormat-main-impl.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/main/floormat-main-impl.hpp b/main/floormat-main-impl.hpp index 9bcdc6de..4c3a9076 100644 --- a/main/floormat-main-impl.hpp +++ b/main/floormat-main-impl.hpp @@ -26,7 +26,6 @@ struct main_impl final : Platform::Sdl2Application, floormat_main Magnum::Math::Vector2<int> window_size() const noexcept override; tile_shader& shader() noexcept override; const tile_shader& shader() const noexcept override; - void* register_debug_callback() noexcept override; struct world& world() noexcept override; SDL_Window* window() noexcept override; @@ -54,14 +53,14 @@ struct main_impl final : Platform::Sdl2Application, floormat_main void stop_text_input() noexcept override; private: + fm_settings s; + char _dummy = maybe_register_debug_callback(s.gpu_debug); floormat_app& app; tile_shader _shader; struct world _world{}; floor_mesh _floor_mesh; wall_mesh _wall_mesh; Magnum::Timeline timeline; - fm_settings s; - int fake_argc = 1; struct draw_bounds final { std::int16_t minx, maxx, miny, maxy; }; @@ -79,6 +78,8 @@ private: GL::DebugOutput::Severity severity, const std::string& str) const; static void _debug_callback(GL::DebugOutput::Source src, GL::DebugOutput::Type type, UnsignedInt id, GL::DebugOutput::Severity severity, const std::string& str, const void* self); + char maybe_register_debug_callback(fm_gpu_debug flag); + void register_debug_callback(); static Configuration make_conf(const fm_settings& s); static GLConfiguration make_gl_conf(const fm_settings& s); |