From 8fbe968a62f845da2a1491c398acf0b2140d2372 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 16 Sep 2010 02:55:02 -0700 Subject: [PATCH] glsl: Don't print blank (function ...) headers for built-ins. Fixes a regression caused when I added my GLSL ES support. --- src/glsl/ir_print_visitor.cpp | 3 +++ 1 file changed, 3 insertions(+) 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) { -- 2.30.2