X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fgenerate.cpp;fp=source%2Fglsl%2Fgenerate.cpp;h=563609918ae216f28178dca421be4c627175f1b5;hp=42b24a9caa949655c6f2a475187aa573d4376447;hb=d4b8a3f67c1f7184124bf95caee7e36ae8d6c82a;hpb=fb5f83c2e3f8f8a6a6444a33bec15e9477a487d1 diff --git a/source/glsl/generate.cpp b/source/glsl/generate.cpp index 42b24a9c..56360991 100644 --- a/source/glsl/generate.cpp +++ b/source/glsl/generate.cpp @@ -579,8 +579,7 @@ void ExpressionResolver::convert_to(RefPtr &expr, BasicTypeDeclarati RefPtr call = new FunctionCall; call->name = type.name; call->constructor = true; - call->arguments.push_back(0); - call->arguments.back() = expr; + call->arguments.push_back_nocopy(expr); call->type = &type; expr = call; }