]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/generate.cpp
Adjust naming of generated variables
[libs/gl.git] / source / glsl / generate.cpp
index 70b8ad18efbca4ca6279435c0f908bb8d37eae15..42b24a9caa949655c6f2a475187aa573d4376447 100644 (file)
@@ -1015,7 +1015,7 @@ void ExpressionResolver::visit_constructor(FunctionCall &call)
                                        stage inline it if that's reasonable. */
                                        RefPtr<VariableDeclaration> temporary = new VariableDeclaration;
                                        temporary->type = args.front().type->name;
-                                       temporary->name = get_unused_variable_name(*current_block, "_temp", string());
+                                       temporary->name = get_unused_variable_name(*current_block, "_temp");
                                        temporary->init_expression = call.arguments.front();
                                        current_block->body.insert(insert_point, temporary);