]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/debug.h
Recognize unknown index as matching any index
[libs/gl.git] / source / glsl / debug.h
index 065e7f5dcb7751064253e491941b97c86e8278b9..c3e9c701075b87974a7e5101ad635bf0bf8e5d8b 100644 (file)
@@ -37,7 +37,8 @@ private:
        std::vector<TreeChars> 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 *);