diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/app.cpp | 2 | ||||
-rw-r--r-- | main/app.hpp | 1 | ||||
-rw-r--r-- | main/debug.cpp | 2 |
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); |