]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/optimize.h
Also break up arrays which are only indexed by constants
[libs/gl.git] / source / glsl / optimize.h
index 1eb0464e7daea97d654576c15792a13e764d8c27..aebe080c585206b14d533a4c09ef3c926878392d 100644 (file)
@@ -161,6 +161,7 @@ private:
        struct AggregateMember
        {
                const VariableDeclaration *declaration = 0;
+               unsigned index = 0;
                RefPtr<Expression> initializer;
                std::vector<RefPtr<Expression> *> references;
        };