diff options
author | Michal Krol <[email protected]> | 2009-09-08 12:46:34 +0200 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-09-08 12:46:34 +0200 |
commit | 58fa89c90279e2bdfc7331d7b632a748e2126ca1 (patch) | |
tree | e8439806a12c369d90f155c94250cb5578c99cd8 /src/mesa/shader/slang/library | |
parent | b837f6c372f0059170d93ac564f58aeebca3c70a (diff) |
slang: Correctly parse numbers from the new preprocessor.
Diffstat (limited to 'src/mesa/shader/slang/library')
-rw-r--r-- | src/mesa/shader/slang/library/slang_shader.syn | 4 | ||||
-rw-r--r-- | src/mesa/shader/slang/library/slang_shader_syn.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/shader/slang/library/slang_shader.syn b/src/mesa/shader/slang/library/slang_shader.syn index f35356bf4a0..af83543cbb8 100644 --- a/src/mesa/shader/slang/library/slang_shader.syn +++ b/src/mesa/shader/slang/library/slang_shader.syn @@ -1416,10 +1416,10 @@ identifier "@ID" .emit *; float - "@NUM" .emit *; + "@NUM" .emit 1 .emit *; integer - "@NUM" .emit *; + "@NUM" .emit 1 .emit *; boolean "true" .emit '1' .emit '\0' .or diff --git a/src/mesa/shader/slang/library/slang_shader_syn.h b/src/mesa/shader/slang/library/slang_shader_syn.h index ca62d41b7f4..98e6453a00b 100644 --- a/src/mesa/shader/slang/library/slang_shader_syn.h +++ b/src/mesa/shader/slang/library/slang_shader_syn.h @@ -685,9 +685,9 @@ "identifier\n" " \"@ID\" .emit *;\n" "float\n" -" \"@NUM\" .emit *;\n" +" \"@NUM\" .emit 1 .emit *;\n" "integer\n" -" \"@NUM\" .emit *;\n" +" \"@NUM\" .emit 1 .emit *;\n" "boolean\n" " \"true\" .emit '1' .emit '\\0' .or\n" " \"false\" .emit '0' .emit '\\0';\n" |