reset error state before parsing (David Reveman)
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 10 Sep 2004 01:05:39 +0000 (01:05 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 10 Sep 2004 01:05:39 +0000 (01:05 +0000)
src/mesa/shader/arbprogparse.c

index 9d78027f6369a1b6a859cf9d78260e641f10f8e8..5b5924c739c5b45d3063af7ef3dcf2b311fb66a2 100644 (file)
@@ -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