From 3487b700e0bedfe3031fc27e53f9351cf40a56a2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Thu, 30 May 2013 19:15:58 +0100 Subject: [PATCH] glstate: Flush previous GL errors before trying to get parameters. --- retrace/glstate_params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.43.0