]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/syntax.cpp
Resolve the return types of functions
[libs/gl.git] / source / glsl / syntax.cpp
index e20d6c262eae2525a0a979922c800e9956f39f18..c8058c4fe9a228b102cbe4792daa83dc3f921f70 100644 (file)
@@ -347,7 +347,8 @@ void InterfaceBlock::visit(NodeVisitor &visitor)
 
 
 FunctionDeclaration::FunctionDeclaration():
-       definition(0)
+       definition(0),
+       return_type_declaration(0)
 { }
 
 FunctionDeclaration::FunctionDeclaration(const FunctionDeclaration &other):
@@ -356,7 +357,8 @@ FunctionDeclaration::FunctionDeclaration(const FunctionDeclaration &other):
        name(other.name),
        parameters(other.parameters),
        body(other.body),
-       definition(other.definition==&other ? this : 0)
+       definition(other.definition==&other ? this : 0),
+       return_type_declaration(0)
 { }
 
 void FunctionDeclaration::visit(NodeVisitor &visitor)