]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/optimize.h
Make variable renaming while inlining more robust
[libs/gl.git] / source / glsl / optimize.h
index ab954b58a471431feab1d6da0f75e9a2abe3bbaa..8a888e15bec7c11e019b172570e758a06f46963b 100644 (file)
@@ -43,10 +43,12 @@ private:
        FunctionDeclaration *source_func;
        Block *target_block;
        std::map<std::string, VariableDeclaration *> variable_map;
-       bool remap_names;
+       std::string remap_prefix;
+       unsigned remap_names;
        bool deps_only;
        RefPtr<Statement> r_inlined_statement;
        std::set<Node *> dependencies;
+       std::set<std::string> referenced_names;
        std::string r_result_name;
 
 public: