From 57c5a009073b18bca9823287979c4e22fc407ee5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Wed, 16 Apr 2014 14:30:35 -0400 Subject: [PATCH] add (commented out) command line render tree visualization --- include/llmr/platform/gl.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/llmr/platform/gl.hpp b/include/llmr/platform/gl.hpp index f8e7a7fee..702b2ff18 100644 --- a/include/llmr/platform/gl.hpp +++ b/include/llmr/platform/gl.hpp @@ -39,12 +39,16 @@ namespace llmr { namespace gl { // Debug group markers, useful for debuggin on iOS #if GL_EXT_debug_marker +// static int indent = 0; inline void start_group(const std::string &str) { glPushGroupMarkerEXT(0, str.c_str()); + // fprintf(stderr, "%s%s\n", std::string(indent * 4, ' ').c_str(), str.c_str()); + // indent++; } inline void end_group() { glPopGroupMarkerEXT(); + // indent--; } #else inline void start_group(const std::string &) {}