From: Ian Romanick Date: Wed, 31 Mar 2010 20:03:56 +0000 (-0700) Subject: Fix comment bug and printf bug in previous commit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d8065d86e8416c207b9a574ee45bf89b7d7b8eb2;p=mesa.git Fix comment bug and printf bug in previous commit --- diff --git a/ast_to_hir.cpp b/ast_to_hir.cpp index 874c11a0a8b..06d7d6273cf 100644 --- a/ast_to_hir.cpp +++ b/ast_to_hir.cpp @@ -1211,7 +1211,7 @@ ast_declarator_list::hir(exec_list *instructions, const char *mode = NULL; /* FINISHME: Variables that are in or out must be declared either at - * FINISHME: global scope or FINISHME: in a parameter list. + * FINISHME: global scope or in a parameter list. */ if (this->type->qualifier.attribute) { mode = "attribute"; @@ -1225,7 +1225,7 @@ ast_declarator_list::hir(exec_list *instructions, _mesa_glsl_error(& loc, state, "%s variable `%s' must be declared at " "global scope", - var->name); + mode, var->name); } } else if (var->mode == ir_var_in) { if (state->target == vertex_shader) {