summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-19 08:22:23 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-19 08:22:23 +0200
commite87062c5ed866710819a56859f430cad5cfed26e (patch)
tree406e1986b13b5e4a2c3e373809222508e40bfc7e
parentda5e3cb79656f9869918d7d9648cee751c324b26 (diff)
defer debug callback to --magnum-gpu-validation
-rw-r--r--main/app.cpp2
-rw-r--r--main/app.hpp1
-rw-r--r--main/debug.cpp2
3 files changed, 1 insertions, 4 deletions
diff --git a/main/app.cpp b/main/app.cpp
index c6e561c3..8b2c8d5d 100644
--- a/main/app.cpp
+++ b/main/app.cpp
@@ -39,7 +39,6 @@ app::app(const Arguments& arguments, app_settings opts):
.setWindowFlags(Configuration::WindowFlag::Resizable),
GLConfiguration{}
.setSampleCount(4)
- .setFlags(GLConfiguration::Flag::GpuValidation)
}
{
if (opts.vsync)
@@ -49,6 +48,7 @@ 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 bf8ea7d0..f1ebadf8 100644
--- a/main/app.hpp
+++ b/main/app.hpp
@@ -87,7 +87,6 @@ private:
};
void make_test_chunk(chunk& c);
- const 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 e8d48d3e..a8d2e508 100644
--- a/main/debug.cpp
+++ b/main/debug.cpp
@@ -69,8 +69,6 @@ void app::_debug_callback(GL::DebugOutput::Source src, GL::DebugOutput::Type typ
void* app::register_debug_callback()
{
- GL::Renderer::setFeature(Feature::DebugOutput, true);
- GL::Renderer::setFeature(Feature::DebugOutputSynchronous, true);
GL::DebugOutput::setCallback(_debug_callback, this);
GL::DebugOutput::setEnabled(true);