diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-30 17:48:56 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-30 18:22:56 +0200 |
commit | 35d4efc64925dcf7ac8df408b4a889405547251c (patch) | |
tree | b228053e064912862e65822fc7b9cdfca8b9c1fc /main | |
parent | b9e12988b7f1369f3c01a3592e0a3259662988d0 (diff) |
make a better scheme for GL_DEBUG breakpoints
Diffstat (limited to 'main')
-rw-r--r-- | main/debug.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/debug.cpp b/main/debug.cpp index b464b49a..bc6b614d 100644 --- a/main/debug.cpp +++ b/main/debug.cpp @@ -5,6 +5,8 @@ namespace floormat { using Severity = GL::DebugOutput::Severity; +CORRADE_NEVER_INLINE void put_debug_breakpoint_here() {} + // NOLINTNEXTLINE(readability-convert-member-functions-to-static) void main_impl::debug_callback(unsigned src, unsigned type, unsigned id, unsigned severity, StringView str) const { @@ -49,7 +51,7 @@ void main_impl::debug_callback(unsigned src, unsigned type, unsigned id, unsigne #endif //debug_break(); - std::fputs("", stdout); // put breakpoint here + put_debug_breakpoint_here(); } static void _debug_callback(GL::DebugOutput::Source src, GL::DebugOutput::Type type, UnsignedInt id, @@ -58,7 +60,6 @@ static void _debug_callback(GL::DebugOutput::Source src, GL::DebugOutput::Type t static_cast<const main_impl*>(self)->debug_callback((unsigned)src, (unsigned)type, (unsigned)id, (unsigned)severity, str); } - void main_impl::register_debug_callback() { GL::DebugOutput::setEnabled(GL::DebugOutput::Source::Api, GL::DebugOutput::Type::Other, {131185}, false); // nvidia krap |