summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/slang_compile.c
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-09-22 12:54:45 +0200
committerMichal Krol <michal@vmware.com>2009-09-22 12:54:45 +0200
commitb1e6514a94effb1a5ea03c31f5a50e9e60638e51 (patch)
treebf5bbbe9e8dbbab7e0c0a28c90c46bee157a6202 /src/mesa/shader/slang/slang_compile.c
parentcd41395073839365b79e6b1cca2e35e08a57bf7b (diff)
slang: Differentiate between uints and floats.
Diffstat (limited to 'src/mesa/shader/slang/slang_compile.c')
-rw-r--r--src/mesa/shader/slang/slang_compile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c
index fb452e5d2c..ce3a85ebf8 100644
--- a/src/mesa/shader/slang/slang_compile.c
+++ b/src/mesa/shader/slang/slang_compile.c
@@ -2683,7 +2683,8 @@ compile_with_grammar(grammar id, const char *source, slang_code_unit * unit,
case SL_PP_QUESTION:
case SL_PP_COLON:
case SL_PP_IDENTIFIER:
- case SL_PP_NUMBER:
+ case SL_PP_UINT:
+ case SL_PP_FLOAT:
*dst++ = *src++;
break;