]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/syntax.cpp
Fixes for handling extended alignment in GLSL
[libs/gl.git] / source / glsl / syntax.cpp
index 2ab4d1b61a197b3ccee9ea849d60c990e8b2427b..d74291bc2840edd89391f6ce04e4fc04275bf5b2 100644 (file)
@@ -78,8 +78,7 @@ NodeContainer<C>::NodeContainer(const NodeContainer &c):
 Block::Block(const Block &other):
        Node(other),
        body(other.body),
-       use_braces(other.use_braces),
-       parent(0)
+       use_braces(other.use_braces)
 { }
 
 void Block::visit(NodeVisitor &visitor)
@@ -225,6 +224,7 @@ BasicTypeDeclaration::BasicTypeDeclaration(const BasicTypeDeclaration &other):
        kind(other.kind),
        size(other.size),
        sign(other.sign),
+       extended_alignment(other.extended_alignment),
        base(other.base)
        // Do not copy base type
 { }
@@ -248,7 +248,8 @@ StructDeclaration::StructDeclaration()
 
 StructDeclaration::StructDeclaration(const StructDeclaration &other):
        TypeDeclaration(other),
-       members(other.members)
+       members(other.members),
+       extended_alignment(other.extended_alignment)
        // Do not copy interface block
 { }