diff options
author | Kenneth Graunke <[email protected]> | 2010-09-16 02:55:02 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2010-09-16 03:09:25 -0700 |
commit | 8fbe968a62f845da2a1491c398acf0b2140d2372 (patch) | |
tree | 62ba0a24582d05a5993476f5fe67241917d3f485 | |
parent | 81f03393982c29f8f4165b5629c8e8fb708b97a3 (diff) |
glsl: Don't print blank (function ...) headers for built-ins.
Fixes a regression caused when I added my GLSL ES support.
-rw-r--r-- | src/glsl/ir_print_visitor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/ir_print_visitor.cpp b/src/glsl/ir_print_visitor.cpp index eff950ebd79..5c19db13260 100644 --- a/src/glsl/ir_print_visitor.cpp +++ b/src/glsl/ir_print_visitor.cpp @@ -153,6 +153,9 @@ void ir_print_visitor::visit(ir_function_signature *ir) void ir_print_visitor::visit(ir_function *ir) { + if (!ir->has_user_signature()) + return; + printf("(function %s\n", ir->name); indentation++; foreach_iter(exec_list_iterator, iter, *ir) { |