Skip to content

Commit

Permalink
Added dependencies for debug group functions
Browse files Browse the repository at this point in the history
  • Loading branch information
michizhou committed Jul 24, 2019
1 parent 0013a21 commit 35e12f7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 3 additions & 1 deletion src/utils/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include <vector>
#include <array>
#include <memory>
#include <glad/glad.h>
#include <glm/glm.hpp>


#ifdef _MSC_VER
Expand Down Expand Up @@ -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<uint8_t> &out, std::shared_ptr<spdlog::logger> 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,
Expand Down

0 comments on commit 35e12f7

Please sign in to comment.