]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/optimize.cpp
Don't dismantle aggregates which are function parameters
[libs/gl.git] / source / glsl / optimize.cpp
index 42e4a86ec7feb3466f7e0a119b4bf1a4feb28916..0d6f753768ad2bd5fdbf7ff4d3a8f44ff75f1cb9 100644 (file)
@@ -717,6 +717,11 @@ void AggregateDismantler::visit(VariableDeclaration &var)
        }
 }
 
+void AggregateDismantler::visit(FunctionDeclaration &func)
+{
+       func.body.visit(*this);
+}
+
 
 template<typename T>
 T ConstantFolder::evaluate_logical(char oper, T left, T right)