ENH: Add cgl/debug.hpp

This commit is contained in:
David Allemang
2023-02-04 21:09:02 -05:00
parent 6ade8c8215
commit 11a5e29518
2 changed files with 91 additions and 0 deletions

View File

@@ -9,6 +9,7 @@
#include "mirror.hpp"
#include "solver.hpp"
#include <cgl/debug.hpp>
#include <cgl/vertexarray.hpp>
#include <cgl/shaderprogram.hpp>
#include <cgl/pipeline.hpp>
@@ -251,6 +252,11 @@ struct WireframeProp : public Prop<2> {
};
void run(const std::string &config_file, GLFWwindow* window) {
#ifndef NDEBUG
glEnable(GL_DEBUG_OUTPUT);
glDebugMessageCallback(log_gl_debug_callback, nullptr);
#endif
glEnable(GL_DEPTH_TEST);
glEnable(GL_BLEND);