summaryrefslogtreecommitdiffhomepage
path: root/main/debug.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-03 17:29:53 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-03 20:34:02 +0100
commit943feead3da4439db921f310ed0994f8c9fbf0f7 (patch)
tree8124337ee7f4b15f453ea1a0f7abd26bdfd4be99 /main/debug.cpp
parentf947c96ba400784090aa36c5bde469c92843083d (diff)
main: add debug break function
Diffstat (limited to 'main/debug.cpp')
-rw-r--r--main/debug.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/debug.cpp b/main/debug.cpp
index 70a1b1e8..3f5a7b16 100644
--- a/main/debug.cpp
+++ b/main/debug.cpp
@@ -48,7 +48,8 @@ void main_impl::debug_callback(unsigned src, unsigned type, unsigned id, unsigne
std::abort();
#endif
- std::fputs("", stdout); // put breakpoint here
+ debug_break();
+ //std::fputs("", stdout); // put breakpoint here
}
static void _debug_callback(GL::DebugOutput::Source src, GL::DebugOutput::Type type, UnsignedInt id,