]> 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 bffc5a036197cc7f3a46e829018a38d98dac7495..08ee082b99cd9e070dd5003de3cdc936ef21d396 100644 (file)
@@ -40,8 +40,7 @@ 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;
        RefPtr<Statement> r_inlined_statement;