summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_function_detect_recursion.cpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2011-07-28 14:04:09 -0700
committerIan Romanick <[email protected]>2011-08-02 08:21:43 -0700
commit586e741ac1fa222d041990b265e820f5aa11344d (patch)
treebf67f1ce40db09b63711dba9a222d449b270e0ec /src/glsl/ir_function_detect_recursion.cpp
parent81b036b4d79423c194596461b098a525af0102c2 (diff)
linker: Make linker_error set LinkStatus to false
Remove the other places that set LinkStatus to false since they all immediately follow a call to linker_error. The function linker_error was previously known as linker_error_printf. The name was changed because it may seem surprising that a printf function will set an error flag. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/glsl/ir_function_detect_recursion.cpp')
-rw-r--r--src/glsl/ir_function_detect_recursion.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/glsl/ir_function_detect_recursion.cpp b/src/glsl/ir_function_detect_recursion.cpp
index 44a1cd0b950..a3b461818d3 100644
--- a/src/glsl/ir_function_detect_recursion.cpp
+++ b/src/glsl/ir_function_detect_recursion.cpp
@@ -311,9 +311,7 @@ emit_errors_linked(const void *key, void *data, void *closure)
f->sig->function_name(),
&f->sig->parameters);
- linker_error_printf(prog,
- "function `%s' has static recursion.\n",
- proto);
+ linker_error(prog, "function `%s' has static recursion.\n", proto);
ralloc_free(proto);
prog->LinkStatus = false;
}