From: José Fonseca Date: Thu, 30 May 2013 18:15:58 +0000 (+0100) Subject: glstate: Flush previous GL errors before trying to get parameters. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=3487b700e0bedfe3031fc27e53f9351cf40a56a2;p=apitrace glstate: Flush previous GL errors before trying to get parameters. --- diff --git a/retrace/glstate_params.py b/retrace/glstate_params.py index 50693a9..e1bffb3 100644 --- a/retrace/glstate_params.py +++ b/retrace/glstate_params.py @@ -525,7 +525,7 @@ class StateDumper: print ' // %s' % name print ' {' - #print ' assert(glGetError() == GL_NO_ERROR);' + print ' while (glGetError() != GL_NO_ERROR) {}' type, value = getter(*args) print ' if (glGetError() != GL_NO_ERROR) {' #print ' std::cerr << "warning: %s(%s) failed\\n";' % (inflection, name)