projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db2cde4
)
mesa: issue error, don't crash, when calling a prototyped, but undefined function
author
Brian Paul
<brian.paul@tungstengraphics.com>
Sat, 22 Nov 2008 00:22:16 +0000
(17:22 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 6 Jan 2009 15:51:24 +0000
(08:51 -0700)
Bug #18659.
(cherry picked from commit
4f05893415a2d6f29b29f4daf991ea95a1891a81
)
src/mesa/shader/slang/slang_codegen.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_codegen.c
b/src/mesa/shader/slang/slang_codegen.c
index 10faaeabc5cca79785da6cc7ba19e2a14643f3be..fa653055f32febb7b850faf49461dc0962c0f39c 100644
(file)
--- a/
src/mesa/shader/slang/slang_codegen.c
+++ b/
src/mesa/shader/slang/slang_codegen.c
@@
-2017,6
+2017,13
@@
_slang_gen_function_call_name(slang_assemble_ctx *A, const char *name,
name);
return NULL;
}
+ if (!fun->body) {
+ slang_info_log_error(A->log,
+ "Function '%s' prototyped but not defined. "
+ "Separate compilation units not supported.",
+ name);
+ return NULL;
+ }
n = _slang_gen_function_call(A, fun, oper, dest);