]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/resolve.cpp
Leave no-op constructors as they are
[libs/gl.git] / source / glsl / resolve.cpp
index 3201ea1bb2a70665507dd64469916fb0b09daa5c..2b18c84b653bbbc1195f30a69c362137ec5754db 100644 (file)
@@ -883,6 +883,8 @@ void ExpressionResolver::visit_constructor(FunctionCall &call)
        map<string, TypeDeclaration *>::const_iterator i = stage->types.find(call.name);
        if(i==stage->types.end())
                return;
+       else if(call.arguments.size()==1 && i->second==call.arguments[0]->type)
+               ;
        else if(BasicTypeDeclaration *basic = dynamic_cast<BasicTypeDeclaration *>(i->second))
        {
                BasicTypeDeclaration *elem = get_element_type(*basic);