]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/syntax.cpp
Add GLSL keywords for overriding functions
[libs/gl.git] / source / glsl / syntax.cpp
index 11a099b5ad3175e94b82f8a75b2877ec5e07c5a9..025af2710bb55da807fb686b6876eaef41d4ce22 100644 (file)
@@ -400,6 +400,8 @@ void InterfaceBlock::visit(NodeVisitor &visitor)
 
 
 FunctionDeclaration::FunctionDeclaration():
+       virtua(false),
+       overrd(false),
        definition(0),
        return_type_declaration(0)
 { }
@@ -409,6 +411,8 @@ FunctionDeclaration::FunctionDeclaration(const FunctionDeclaration &other):
        return_type(other.return_type),
        name(other.name),
        parameters(other.parameters),
+       virtua(other.virtua),
+       overrd(other.overrd),
        body(other.body),
        signature(other.signature),
        definition(other.definition==&other ? this : 0),