From d8065d86e8416c207b9a574ee45bf89b7d7b8eb2 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 31 Mar 2010 13:03:56 -0700 Subject: [PATCH] Fix comment bug and printf bug in previous commit --- ast_to_hir.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ast_to_hir.cpp b/ast_to_hir.cpp index 874c11a..06d7d62 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) { -- 2.7.4