summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2010-04-09 16:34:21 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-04-28 15:34:52 -0700
commit1168d95109094f171cf05457385381d053a8581e (patch)
treee6701d12f24e3f9384d49ace33ba3508b6e26fd0
parent7dd6adbe2e791b22de97175a8715ef1217619c99 (diff)
ir_print_visitor: Remove unnecessary parenthesis around variable names.
-rw-r--r--ir_print_visitor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir_print_visitor.cpp b/ir_print_visitor.cpp
index 6eb9a1dc41..75fc109e13 100644
--- a/ir_print_visitor.cpp
+++ b/ir_print_visitor.cpp
@@ -44,7 +44,7 @@ print_type(const glsl_type *t)
void ir_print_visitor::visit(ir_variable *ir)
{
if (deref_depth) {
- printf("(%s)", ir->name);
+ printf("%s", ir->name);
} else {
printf("(declare ");
@@ -57,7 +57,7 @@ void ir_print_visitor::visit(ir_variable *ir)
cent, inv, mode[ir->mode], interp[ir->interpolation]);
print_type(ir->type);
- printf("(%s)) ", ir->name);
+ printf(" %s)", ir->name);
}
}