Fix comment bug and printf bug in previous commit
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 31 Mar 2010 20:03:56 +0000 (13:03 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 31 Mar 2010 20:03:56 +0000 (13:03 -0700)
ast_to_hir.cpp

index 874c11a0a8bc032b35fde830d6ffe6860d00189b..06d7d6273cf81386935d55f6056987579644cad9 100644 (file)
@@ -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) {