projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc02042
)
glsl/sl: fix _parse_boolconstant()
author
Brian Paul
<brianp@vmware.com>
Thu, 10 Dec 2009 16:16:20 +0000
(09:16 -0700)
committer
Brian Paul
<brianp@vmware.com>
Thu, 10 Dec 2009 16:16:39 +0000
(09:16 -0700)
Need to emit the radix before the digits.
This fixes several glean/glgl1 regressions.
src/glsl/cl/sl_cl_parse.c
patch
|
blob
|
history
diff --git
a/src/glsl/cl/sl_cl_parse.c
b/src/glsl/cl/sl_cl_parse.c
index 81e30a8c28ccdf5d3e42c8c03c77d556862dd272..a9db65c7ad732aa1be91f7e0c9b4cd08b63f7020 100644
(file)
--- a/
src/glsl/cl/sl_cl_parse.c
+++ b/
src/glsl/cl/sl_cl_parse.c
@@
-1821,6
+1821,7
@@
_parse_boolconstant(struct parse_context *ctx,
{
if (_parse_id(ctx, ctx->dict._false, ps) == 0) {
_emit(ctx, &ps->out, OP_PUSH_BOOL);
+ _emit(ctx, &ps->out, 2); /* radix */
_emit(ctx, &ps->out, '0');
_emit(ctx, &ps->out, '\0');
return 0;
@@
-1828,6
+1829,7
@@
_parse_boolconstant(struct parse_context *ctx,
if (_parse_id(ctx, ctx->dict._true, ps) == 0) {
_emit(ctx, &ps->out, OP_PUSH_BOOL);
+ _emit(ctx, &ps->out, 2); /* radix */
_emit(ctx, &ps->out, '1');
_emit(ctx, &ps->out, '\0');
return 0;