mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-26 15:30:40 +02:00
glsl: Fix segfault due to missing printf argument
Fixes the following Piglit tests: glslparsertest/shaders/array2.frag glslparsertest/shaders/dataType6.frag NOTE: This is a candidate for the 7.9 and 7.10 branches.
This commit is contained in:
parent
45e8e6c6b1
commit
46f7105df4
1 changed files with 2 additions and 1 deletions
|
|
@ -2509,7 +2509,8 @@ ast_declarator_list::hir(exec_list *instructions,
|
|||
*/
|
||||
if (this->type->qualifier.flags.q.constant && decl->initializer == NULL) {
|
||||
_mesa_glsl_error(& loc, state,
|
||||
"const declaration of `%s' must be initialized");
|
||||
"const declaration of `%s' must be initialized",
|
||||
decl->identifier);
|
||||
}
|
||||
|
||||
/* Check if this declaration is actually a re-declaration, either to
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue