mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 21:10:12 +01:00
glsl/sl: fix _parse_boolconstant()
Need to emit the radix before the digits. This fixes several glean/glgl1 regressions.
This commit is contained in:
parent
cc020425e9
commit
289eab5389
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue