mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 15:50:32 +01:00
mesa: issue error, don't crash, when calling a prototyped, but undefined function
Bug #18659.
This commit is contained in:
parent
ca142c2c08
commit
e545ce2af4
1 changed files with 7 additions and 0 deletions
|
|
@ -2020,6 +2020,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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue