summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-08-12 08:50:29 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-08-12 08:53:49 -0600
commit0fe0dc32e44b62e51b20645288360c7ce97ea436 (patch)
tree6abe9c05d476d6f58b499110e60134b7342c2b0e /src
parentef82311b3db49fa62c916a100d05b1b05d21f466 (diff)
mesa: glsl: better error messages
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/slang/slang_codegen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c
index 9c17dceb19..a1d862f4ef 100644
--- a/src/mesa/shader/slang/slang_codegen.c
+++ b/src/mesa/shader/slang/slang_codegen.c
@@ -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;
}
}