mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
Test that main doesn't take any parameters.
Fixes main2.vert.
This commit is contained in:
parent
aad7c77937
commit
174cc03edc
1 changed files with 6 additions and 0 deletions
|
|
@ -1462,6 +1462,12 @@ ast_function_definition::hir(exec_list *instructions,
|
||||||
|
|
||||||
_mesa_glsl_error(& loc, state, "main() must return void");
|
_mesa_glsl_error(& loc, state, "main() must return void");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!parameters.is_empty()) {
|
||||||
|
YYLTYPE loc = this->get_location();
|
||||||
|
|
||||||
|
_mesa_glsl_error(& loc, state, "main() must not take any parameters");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Finish storing the information about this new function in its signature.
|
/* Finish storing the information about this new function in its signature.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue