X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fsyntax.cpp;h=90e26c39a37c24d663dc8846bb172f65007ec694;hb=4df8fcb07f21b450d3885eaec39dc4bcf3f07f81;hp=55dc94a77ff3552dbc449ade8da8659e3c1b9880;hpb=518f751d385b733adbf43fe4056403740709edec;p=libs%2Fgl.git diff --git a/source/glsl/syntax.cpp b/source/glsl/syntax.cpp index 55dc94a7..90e26c39 100644 --- a/source/glsl/syntax.cpp +++ b/source/glsl/syntax.cpp @@ -107,6 +107,7 @@ VariableReference::VariableReference(): { } VariableReference::VariableReference(const VariableReference &other): + Expression(other), name(other.name), declaration(0) { } @@ -122,6 +123,7 @@ InterfaceBlockReference::InterfaceBlockReference(): { } InterfaceBlockReference::InterfaceBlockReference(const InterfaceBlockReference &other): + Expression(other), name(other.name), declaration(0) { } @@ -137,6 +139,7 @@ MemberAccess::MemberAccess(): { } MemberAccess::MemberAccess(const MemberAccess &other): + Expression(other), left(other.left), member(other.member), declaration(0) @@ -170,6 +173,7 @@ Assignment::Assignment(): { } Assignment::Assignment(const Assignment &other): + BinaryExpression(other), self_referencing(other.self_referencing), target_declaration(0) { } @@ -186,6 +190,7 @@ FunctionCall::FunctionCall(): { } FunctionCall::FunctionCall(const FunctionCall &other): + Expression(other), name(other.name), constructor(other.constructor), arguments(other.arguments), @@ -247,6 +252,7 @@ VariableDeclaration::VariableDeclaration(): { } VariableDeclaration::VariableDeclaration(const VariableDeclaration &other): + Statement(other), layout(other.layout), constant(other.constant), sampling(other.sampling), @@ -282,6 +288,7 @@ InterfaceBlock::InterfaceBlock(): } InterfaceBlock::InterfaceBlock(const InterfaceBlock &other): + Statement(other), interface(other.interface), name(other.name), members(other.members), @@ -307,6 +314,7 @@ FunctionDeclaration::FunctionDeclaration(): { } FunctionDeclaration::FunctionDeclaration(const FunctionDeclaration &other): + Statement(other), return_type(other.return_type), name(other.name), parameters(other.parameters),