]> git.tdb.fi Git - libs/gl.git/commitdiff
Make the iteration init statement a Statement instead of Node
authorMikko Rasa <tdb@tdb.fi>
Wed, 3 Mar 2021 18:17:13 +0000 (20:17 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 4 Mar 2021 00:26:15 +0000 (02:26 +0200)
source/glsl/syntax.h

index 0821ee5fe97c8780f836b0ce75f562c939de8d10..384bd60f603dc04cef77d41a67f5f190d5414851 100644 (file)
@@ -369,7 +369,7 @@ struct Conditional: Statement
 
 struct Iteration: Statement
 {
-       NodePtr<Node> init_statement;
+       NodePtr<Statement> init_statement;
        NodePtr<Expression> condition;
        NodePtr<Expression> loop_expression;
        Block body;