mesa: reset ErrorDebugCount to zero in glGetString()
authorBrian Paul <brianp@vmware.com>
Tue, 4 Aug 2009 21:28:29 +0000 (15:28 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 4 Aug 2009 21:36:28 +0000 (15:36 -0600)
src/mesa/main/getstring.c

index 41fd786d7d5aaaa89a097c6c7e1ba57d999a6795..6599ed9698d88f91ce28035fbd1a60f4175b3fab 100644 (file)
@@ -266,5 +266,6 @@ _mesa_GetError( void )
       _mesa_debug(ctx, "glGetError <-- %s\n", _mesa_lookup_enum_by_nr(e));
 
    ctx->ErrorValue = (GLenum) GL_NO_ERROR;
+   ctx->ErrorDebugCount = 0;
    return e;
 }