diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-31 13:03:56 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-31 13:03:56 -0700 |
commit | d8065d86e8416c207b9a574ee45bf89b7d7b8eb2 (patch) | |
tree | 64efde5ec1dee693b04fd8f46225baa50faa3e23 | |
parent | b168e53452592ce7364a3ce46a6d30c5b746fc3b (diff) |
Fix comment bug and printf bug in previous commit
-rw-r--r-- | ast_to_hir.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ast_to_hir.cpp b/ast_to_hir.cpp index 874c11a0a8..06d7d6273c 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) { |