summaryrefslogtreecommitdiffstats
path: root/src/glsl/pp/sl_pp_pragma.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/pp/sl_pp_pragma.c')
-rw-r--r--src/glsl/pp/sl_pp_pragma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/pp/sl_pp_pragma.c b/src/glsl/pp/sl_pp_pragma.c
index 059bc6f2886..1cd9fd82348 100644
--- a/src/glsl/pp/sl_pp_pragma.c
+++ b/src/glsl/pp/sl_pp_pragma.c
@@ -99,6 +99,7 @@ sl_pp_process_pragma(struct sl_pp_context *context,
/* Ignore the tokens that follow. */
if (sl_pp_process_out(state, &out)) {
+ strcpy(context->error_msg, "out of memory");
return -1;
}