From 7f76b8ffd141f3cee89b3f751e0a6985b88fa049 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 10 Sep 2004 01:05:39 +0000 Subject: [PATCH] reset error state before parsing (David Reveman) --- src/mesa/shader/arbprogparse.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c index 9d78027..5b5924c 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 -- 2.7.4