mesa: glsl: better error messages
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 12 Aug 2008 14:50:29 +0000 (08:50 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 12 Aug 2008 14:53:49 +0000 (08:53 -0600)
src/mesa/shader/slang/slang_codegen.c

index 9c17dceb191be5ee7b603d045d82700674f6b388..a1d862f4ef2f79b0dfe4e2821804a6f1ed4e6e27 100644 (file)
@@ -2826,7 +2826,7 @@ _slang_gen_declaration(slang_assemble_ctx *A, slang_operation *oper)
 
       /* type check/compare var and initializer */
       if (!_slang_assignment_compatible(A, oper, initializer)) {
-         slang_info_log_error(A->log, "illegal types in assignment");
+         slang_info_log_error(A->log, "incompatible types in assignment");
          return NULL;
       }         
 
@@ -2976,7 +2976,7 @@ _slang_gen_assignment(slang_assemble_ctx * A, slang_operation *oper)
       if (!_slang_assignment_compatible(A,
                                         &oper->children[0],
                                         &oper->children[1])) {
-         slang_info_log_error(A->log, "illegal types in assignment");
+         slang_info_log_error(A->log, "incompatible types in assignment");
          return NULL;
       }
 
@@ -3264,7 +3264,7 @@ _slang_gen_compare(slang_assemble_ctx *A, slang_operation *oper,
            t0.spec.type != SLANG_SPEC_FLOAT) ||
           (t1.spec.type != SLANG_SPEC_INT &&
            t1.spec.type != SLANG_SPEC_FLOAT)) {
-         slang_info_log_error(A->log, "Illegal type(s) for inequality operator");
+         slang_info_log_error(A->log, "Incompatible type(s) for inequality operator");
          return NULL;
       }
    }