X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Foptimize.h;h=9b7b7affecf58035f19c2457cbd08c8c4adddf3d;hb=241cf36a6d7735706804bb3c517529bbe078f1ee;hp=b8ab3201ccc54aa74fc603fce30caf8b5bd6b683;hpb=57ff0b07aca38aee593a85831ba600b77e3b7a7b;p=libs%2Fgl.git diff --git a/source/glsl/optimize.h b/source/glsl/optimize.h index b8ab3201..9b7b7aff 100644 --- a/source/glsl/optimize.h +++ b/source/glsl/optimize.h @@ -276,6 +276,7 @@ private: virtual void visit(Iteration &); }; +/** Removes code which is never executed due to flow control statements. */ class UnreachableCodeRemover: private TraversingVisitor { private: @@ -328,7 +329,6 @@ private: struct VariableInfo { - InterfaceBlock *interface_block = 0; std::vector assignments; bool initialized = false; bool output = false; @@ -340,7 +340,6 @@ private: Stage *stage = 0; BlockVariableMap variables; std::list assignments; - InterfaceBlock *interface_block = 0; Assignment *r_assignment = 0; bool assignment_target = false; bool r_side_effects = false;