summaryrefslogtreecommitdiffhomepage
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/app.cpp1
-rw-r--r--main/app.hpp2
-rw-r--r--main/debug.cpp6
3 files changed, 3 insertions, 6 deletions
diff --git a/main/app.cpp b/main/app.cpp
index 8b2c8d5d..c39b272c 100644
--- a/main/app.cpp
+++ b/main/app.cpp
@@ -48,7 +48,6 @@ app::app(const Arguments& arguments, app_settings opts):
}
else
setSwapInterval(0);
- register_debug_callback();
set_fp_mask();
reset_camera_offset();
update_window_scale(windowSize());
diff --git a/main/app.hpp b/main/app.hpp
index f1ebadf8..60b9a607 100644
--- a/main/app.hpp
+++ b/main/app.hpp
@@ -87,6 +87,8 @@ private:
};
void make_test_chunk(chunk& c);
+ [[maybe_unused]] void* _dummy = register_debug_callback();
+
tile_shader _shader;
tile_atlas_ floor1 = loader.tile_atlas("floor-tiles.tga", {44, 4});
tile_atlas_ floor2 = loader.tile_atlas("metal1.tga", {2, 2});
diff --git a/main/debug.cpp b/main/debug.cpp
index a8d2e508..2b7d9e1d 100644
--- a/main/debug.cpp
+++ b/main/debug.cpp
@@ -18,10 +18,7 @@ void app::debug_callback(GL::DebugOutput::Source src, GL::DebugOutput::Type type
static thread_local auto clock = std::chrono::steady_clock{};
static const auto t0 = clock.now();
- if (id == 131185 && severity == GL::DebugOutput::Severity::Notification)
- return;
-
-#if 0
+#if 1
[[maybe_unused]] volatile auto _type = type;
[[maybe_unused]] volatile auto _id = id;
[[maybe_unused]] volatile auto _src = src;
@@ -70,7 +67,6 @@ void app::_debug_callback(GL::DebugOutput::Source src, GL::DebugOutput::Type typ
void* app::register_debug_callback()
{
GL::DebugOutput::setCallback(_debug_callback, this);
- GL::DebugOutput::setEnabled(true);
#if 1
/* Disable rather spammy "Buffer detailed info" debug messages on NVidia drivers */