]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/optimize.h
Use a temporary staging block in InlineContentInjector
[libs/gl.git] / source / glsl / optimize.h
index 5091b008634b3d887df606844b326ccc3b353237..08ee082b99cd9e070dd5003de3cdc936ef21d396 100644 (file)
@@ -40,11 +40,9 @@ class InlineContentInjector: private TraversingVisitor
 {
 private:
        FunctionDeclaration *source_func;
-       Block *target_block;
-       std::map<std::string, VariableDeclaration *> variable_map;
+       Block staging_block;
        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;