aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/grammar.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/shader/grammar.c b/src/mesa/shader/grammar.c
index 09e09204a0e..3bf67ccc83c 100644
--- a/src/mesa/shader/grammar.c
+++ b/src/mesa/shader/grammar.c
@@ -2772,7 +2772,9 @@ void grammar_get_last_error (byte *text, unsigned int size, int *pos)
}
if (p)
- while (*p)
+ {
+ while (*p)
+ {
if (*p == '$')
{
const byte *r = error_param;
@@ -2790,7 +2792,8 @@ void grammar_get_last_error (byte *text, unsigned int size, int *pos)
APPEND_CHARACTER(*p)
p++;
}
-
+ }
+ }
*pos = error_position;
#undef APPEND_CHARACTER