summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-09-10 01:05:39 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-09-10 01:05:39 +0000
commit7f76b8ffd141f3cee89b3f751e0a6985b88fa049 (patch)
tree7228a20cf305333d6e319685138bee1ca06b7573 /src
parent253204f9f0a1942a65e45d876f8d5f16d1a196a1 (diff)
reset error state before parsing (David Reveman)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/arbprogparse.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c
index 9d78027f63..5b5924c739 100644
--- a/src/mesa/shader/arbprogparse.c
+++ b/src/mesa/shader/arbprogparse.c
@@ -3762,6 +3762,9 @@ _mesa_parse_arb_program (GLcontext * ctx, const GLubyte * str, GLsizei len,
GLubyte *strz = NULL;
static int arbprogram_syn_is_ok = 0; /* XXX temporary */
+ /* Reset error state */
+ _mesa_set_program_error(ctx, -1, NULL);
+
#if DEBUG_PARSING
fprintf (stderr, "Loading grammar text!\n");
#endif