X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fdebug.h;h=c3e9c701075b87974a7e5101ad635bf0bf8e5d8b;hp=065e7f5dcb7751064253e491941b97c86e8278b9;hb=241cf36a6d7735706804bb3c517529bbe078f1ee;hpb=1205396c4cfdce84cf6559557ee7cb268a8c361c diff --git a/source/glsl/debug.h b/source/glsl/debug.h index 065e7f5d..c3e9c701 100644 --- a/source/glsl/debug.h +++ b/source/glsl/debug.h @@ -37,7 +37,8 @@ private: std::vector tree; public: - const std::string &apply(Stage &); + std::string apply(Stage &); + std::string apply(Node &n) { n.visit(*this); return formatted; } private: void append(const std::string &); @@ -47,7 +48,6 @@ private: void begin_sub(); void last_branch(); void end_sub(); - void annotated_branch(const std::string &, Node &); unsigned get_label(const Node &); std::string format_type(TypeDeclaration *);