X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fsyntax.cpp;h=0b9ecb54ca9d0aef569b9ebc4fe7477ec8202415;hb=99719790df8a1215465a68c7b1d87a495bff87eb;hp=957b49cea61a149fc213f9dbe71ecc9fa9774d1b;hpb=947bb7477205c038aa1804b84452cddd2108550a;p=libs%2Fgl.git diff --git a/source/glsl/syntax.cpp b/source/glsl/syntax.cpp index 957b49ce..0b9ecb54 100644 --- a/source/glsl/syntax.cpp +++ b/source/glsl/syntax.cpp @@ -73,7 +73,17 @@ Statement::Statement(): Block::Block(): - use_braces(false) + use_braces(false), + anonymous(false), + parent(0) +{ } + +Block::Block(const Block &other): + Node(other), + body(other.body), + use_braces(other.use_braces), + anonymous(other.anonymous), + parent(0) { } void Block::visit(NodeVisitor &visitor)