summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-08-06 16:29:40 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-08-06 16:29:40 -0600
commit35b9aedf7fc29ccc1d8c969b11eeb5eca57c5af2 (patch)
tree0e2fe717114c3b0c33f8b250da5d334fe7ba16af /src/mesa/shader/slang
parent95d3642122f48439e356b781f62649553f97c7ee (diff)
mesa: glsl: report 'Syntax Error' instead of 'Invalid external declaration'
Diffstat (limited to 'src/mesa/shader/slang')
-rw-r--r--src/mesa/shader/slang/library/slang_shader.syn4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/library/slang_shader.syn b/src/mesa/shader/slang/library/slang_shader.syn
index 52a792ad17..4505758520 100644
--- a/src/mesa/shader/slang/library/slang_shader.syn
+++ b/src/mesa/shader/slang/library/slang_shader.syn
@@ -242,7 +242,9 @@
.emtcode PARAMETER_ARRAY_NOT_PRESENT 0
.emtcode PARAMETER_ARRAY_PRESENT 1
-.errtext INVALID_EXTERNAL_DECLARATION "2001: Invalid external declaration."
+/* INVALID_EXTERNAL_DECLARATION seems to be reported when there's */
+/* any syntax errors... */
+.errtext INVALID_EXTERNAL_DECLARATION "2001: Syntax error."
.errtext INVALID_OPERATOR_OVERRIDE "2002: Invalid operator override."
.errtext LBRACE_EXPECTED "2003: '{' expected but '$err_token$' found."
.errtext LPAREN_EXPECTED "2004: '(' expected but '$err_token$' found."