summaryrefslogtreecommitdiffstats
path: root/src/glsl/pp/sl_pp_expression.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/pp/sl_pp_expression.c')
-rw-r--r--src/glsl/pp/sl_pp_expression.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/pp/sl_pp_expression.c b/src/glsl/pp/sl_pp_expression.c
index a692430abbf..6b2329ed1a7 100644
--- a/src/glsl/pp/sl_pp_expression.c
+++ b/src/glsl/pp/sl_pp_expression.c
@@ -47,6 +47,7 @@ _parse_primary(struct parse_context *ctx,
ctx->input++;
} else {
if (ctx->input->token != SL_PP_LPAREN) {
+ strcpy(ctx->context->error_msg, "expected `('");
return -1;
}
ctx->input++;
@@ -54,6 +55,7 @@ _parse_primary(struct parse_context *ctx,
return -1;
}
if (ctx->input->token != SL_PP_RPAREN) {
+ strcpy(ctx->context->error_msg, "expected `)'");
return -1;
}
ctx->input++;