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 a05e761
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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 a05e761

Please sign in to comment.