X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Foutput.cpp;h=b277ba8ee09fef2b2c38c4152dc136982c16d68f;hb=5b33d00373c6f4953d684f8cc75c9353df469735;hp=52371d1bfdd79f9f7de91ff457d10001952f6c62;hpb=041ba4b1acd55337239c5ce24cc310118c621206;p=libs%2Fgl.git diff --git a/source/glsl/output.cpp b/source/glsl/output.cpp index 52371d1b..b277ba8e 100644 --- a/source/glsl/output.cpp +++ b/source/glsl/output.cpp @@ -136,6 +136,12 @@ void Formatter::visit(MemberAccess &memacc) append(format(".%s", memacc.member)); } +void Formatter::visit(Swizzle &swizzle) +{ + swizzle.left->visit(*this); + append(format(".%s", swizzle.component_group)); +} + void Formatter::visit(UnaryExpression &unary) { if(unary.oper->type==Operator::PREFIX)