X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Foptimize.h;h=08ee082b99cd9e070dd5003de3cdc936ef21d396;hb=d5c38c181cac4da490c96123e5a88a8c06785e55;hp=160388065b8fab22d492e3193f8eed9702f76acb;hpb=c4ae3a80623be4b0f17de4a9cc25f0bedf2dbef5;p=libs%2Fgl.git diff --git a/source/glsl/optimize.h b/source/glsl/optimize.h index 16038806..08ee082b 100644 --- a/source/glsl/optimize.h +++ b/source/glsl/optimize.h @@ -40,11 +40,9 @@ class InlineContentInjector: private TraversingVisitor { private: FunctionDeclaration *source_func; - Block *target_block; - std::map variable_map; + Block staging_block; std::string remap_prefix; unsigned remap_names; - bool deps_only; RefPtr r_inlined_statement; std::set dependencies; std::set referenced_names; @@ -75,6 +73,7 @@ private: NodeList::iterator insert_point; RefPtr r_inline_result; bool r_any_inlined; + bool r_inlined_here; public: FunctionInliner();