diff --git a/src/main.cpp b/src/main.cpp index 759ee96..481f522 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -33,7 +33,7 @@ void log_opengl_debug(GLenum source, GLenum type, GLuint id, GLenum severity, "OpenGL Debug msg: Source: {}, Type: {}, Id: {}, Severity: {}, Message: {}", source, type, id, severity, std::string(message) ); -#if !defined(__APPLE__) +#ifdef WIN32 DebugBreak(); #endif } diff --git a/src/utils/utils.cpp b/src/utils/utils.cpp index 93f5e3e..2350f3d 100644 --- a/src/utils/utils.cpp +++ b/src/utils/utils.cpp @@ -189,7 +189,7 @@ bool load_rawfile(const std::string& rawfilename, const Eigen::RowVector3i& dims return true; } -void debug_group_action(const std::string& action, const std::string& message) { +void debug_group_action(const std::string& action, const char* message) { #if !defined(__APPLE__) if (action == "PUSH") { glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, -1, message); diff --git a/src/utils/utils.h b/src/utils/utils.h index 9368039..00e9096 100644 --- a/src/utils/utils.h +++ b/src/utils/utils.h @@ -6,6 +6,8 @@ #include #include #include +#include +#include #ifdef _MSC_VER @@ -42,7 +44,7 @@ bool load_rawfile(const std::string& rawfilename, const Eigen::RowVector3i& dims bool load_rawfile(const std::string& rawfilename, const Eigen::RowVector3i& dims, std::vector &out, std::shared_ptr logger); -void debug_group_action(const std::string& action, const std::string& message=""); +void debug_group_action(const std::string& action, const char* message=""); void edge_endpoints(const Eigen::MatrixXd& V, const Eigen::MatrixXi& F,