projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d01bf82
)
ir_reader: Don't mark functions as defined if their body is empty.
author
Kenneth Graunke
<kenneth@whitecape.org>
Thu, 12 Aug 2010 20:17:53 +0000
(13:17 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Sat, 14 Aug 2010 02:09:35 +0000
(19:09 -0700)
src/glsl/ir_reader.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/ir_reader.cpp
b/src/glsl/ir_reader.cpp
index 14bd2d62fd780937fa85276e8be8265a51273e86..2def3efff5657d69ecd95a6827f9d7a788d00bb8 100644
(file)
--- a/
src/glsl/ir_reader.cpp
+++ b/
src/glsl/ir_reader.cpp
@@
-297,7
+297,7
@@
read_function_sig(_mesa_glsl_parse_state *st, ir_function *f, s_list *list,
sig->replace_parameters(&hir_parameters);
- if (!skip_body) {
+ if (!skip_body
&& !body_list->subexpressions.is_empty()
) {
if (sig->is_defined) {
ir_read_error(st, list, "function %s redefined", f->name);
return;